Array.prototype.sort() - JavaScript | MDN - MDN Web Docs
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
WebMar 15, 2024 · The sort () method of Array instances sorts the elements of an array in place and returns the reference to the same array, now sorted. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values.
DA: 98 PA: 45 MOZ Rank: 99