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

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -