JavaScript Array sort() Method - W3Schools
https://www.w3schools.com/jsref/jsref_sort.asp
Webconst points = [40, 100, 1, 5, 25, 10]; points.sort(function(a, b) {return a-b}); Try it Yourself ». Sort numbers in descending order: const points = [40, 100, 1, 5, 25, 10]; points.sort(function(a, b) {return b-a}); Try it Yourself ». Find the lowest value: const points = [40, 100, 1, 5, 25, 10];
DA: 55 PA: 25 MOZ Rank: 90