Array.prototype.sort() - JavaScript | MDN

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#description

Skip to main content Skip to search Skip to select language Technologies Technologies Overview HTML CSS JavaScript Graphics HTTP APIs Browser Extensions MathML References & Guides Learn web development Tutorials References Developer Guides Accessibility Game development ...more docs Feedback Send Feedback Contribute to MDN Report a content issue 🌐 Report a platform issue 🌐 Search MDN Web technology for developers JavaScript JavaScript reference Standard built-in objects Array Array.prototype.sort() Change language Table of contents Syntax Description Examples Specifications Browser compatibility See also The sort() method sorts the elements of an array in place and returns the sorted array. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values. The time and space complexity of the sort cann...

Linked on 2021-10-21 22:44:05 | Similar Links