javascript - I want to know how Array.prototype.sort works basically polyfill of sort function -


i know how sort works in js want know how array.prototype.sort implemented, polyfill of sort function, algorithm or other details

i'm unable find here, https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/array/sort

if you're interested, here's specification array.protoype.sort: http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.11

it not dictate sorting algorithm use, that's browser's implementation.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -