.sort()
Term side of the Card
Topic: Array
Unit title: .sort()
Categories: Method
Explanation side of the Card
Explanation: The method that sorts the elements of an array in place, arranging them in ascending or descending order based on a function or their natural order. The sorting is done according to the Unicode code points of the elements by default.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 1
Availability: