mozilla

Compare Revisions

Array.prototype.sort()

Change Revisions

Revision 417483:

Revision 417483 by Sheppy on

Revision 421447:

Revision 421447 by robatron on

Title:
Array.sort
Array.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 417483
Revision 421447
t70      <li>If <code>compareFunction(a, b)</code> is less than 0, st70      <li>If <code>compareFunction(a, b)</code> is less than 0, s
>ort <code>a</code> to a lower index than <code>b</code>, i.e. b c>ort <code>a</code> to a lower index than <code>b</code>, i.e. <co
>omes first.>de>a</code> comes first.

Back to History