E
E
Evgeny Kucherenko2016-11-30 21:16:28
JavaScript
Evgeny Kucherenko, 2016-11-30 21:16:28

What's in a sort kernel?

What sorting algorithm/algorithms does JS use when calling the arr.sort( (a, b) => a - b ) method on a numeric array? How to find out what's in the kernel? Is the best option chosen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-11-30
@evgenyspace

It is not specified by the standard, which means that each engine can use its own algorithm. The main thing is to comply with the standard for the challenge and the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question