Core JavaScript

Intermediate JavaScript

JavaScript Reference

JavaScript Sort() Method/Function Example - Alphabetically or Numeric




JavaScript Sort() Function sorts the array item either Alphabetically or Numeric in both order either Ascending or Descending.

Example-Code:

Example-Results: