DEV Community

loading...

Discussion on: The Javascript sort is slow and stupid

Collapse
theodesp profile image
Theofanis Despoudis

It looks like there are not a lot of algorithms for partial sorting. But you could see the C++ implementation that uses Heapsort

github.com/gcc-mirror/gcc/blob/d93...