psy0la
Last Updated: February 25, 2016
·
1.563K
· afshinm
Add92525ab635b5119671269d24c1449

Which sorting algorithm Array.sort use?

Because the ECMAscript standard does not specify which sort algorithm is to be used, Array.sort uses these algorithms in different browsers:

Webkit (Safari, ...): Selection Sort

Mozilla/Firefox: Merge Sort

Internet Explorer: ? (I don't have enough knowledge about which algorithm Microsoft IE use for sorting, anybody know that?)

Say Thanks
Respond

2 Responses
Add your response

2632
54588 555132027835563 687647376 o

I think Microsoft IE uses BogoSort http://en.wikipedia.org/wiki/Bogosort

over 1 year ago ·
8537
Ab927485bccfcf35ba4583723876063f

No, I am pretty sure Internet Exporer uses Evil Sort, that is more Microsoft's style.

over 1 year ago ·