Compare Revisions

Array.prototype.sort()

Change Revisions

Revision 436689:

Revision 436689 by nebulon on

Revision 497013:

Revision 497013 by roryokane on

Title:
Array.prototype.sort
Array.prototype.sort
Slug:
Web/JavaScript/Reference/Global_Objects/Array/sort
Web/JavaScript/Reference/Global_Objects/Array/sort
Tags:
"Array", "Array methods"
"Array", "Array methods"
Content:

Revision 436689
Revision 497013
t8      Sorts the elements of an array in place and returns the arrt8      Sorts the elements of an array in place and returns the arr
>ay. The sort is not necessarily <a href="https://en.wikipedia.org>ay. The sort is not necessarily <a href="https://en.wikipedia.org
>/wiki/Sorting_algorithm#Stability" title="https://en.wikipedia.or>/wiki/Sorting_algorithm#Stability" title="https://en.wikipedia.or
>g/wiki/Sorting_algorithm#Stability">stable</a>.>g/wiki/Sorting_algorithm#Stability">stable</a>. The default sort 
 >order is lexicographic (not numeric).

Back to History