Core JavaScript

Intermediate JavaScript

JavaScript Reference

JavaScript Sort() Method/Function Example - Numeric Sort(Descending Order)




JavaScript Sort() Function sorts the array item either Alphabetically or Numeric in both order either Ascending or Descending. following example is sort only descending order.

Example-Code:

Example-Results: