Array.prototype.sort() - JavaScript | MDN
http://devdoc.net/web/developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort.html
WEBMay 11, 2017 · The sort () method sorts the elements of an array in place and returns the array. The sort is not necessarily stable. The default sort order is according to string Unicode code points. var fruit = ['cherries', 'apples', 'bananas']; fruit.sort(); // ['apples', 'bananas', 'cherries'] var scores = [1, 10, 21, 2]; . scores.sort(); // [1, 10, 2, 21]
DA: 47 PA: 74 MOZ Rank: 37