mozilla

Compare Revisions

Array.prototype.sort()

Change Revisions

Revision 509:

Revision 509 by 1212jtraceur on

Revision 510:

Revision 510 by H3h on

Title:
Array sort method
Array sort method
Slug:
JavaScript/Reference/Global_Objects/Array/sort
JavaScript/Reference/Global_Objects/Array/sort
Tags:
Array
Array
Content:

Revision 509
Revision 510
n85      return -1n85      return -1;
n87      return 1n87      return 1;
n89   return 0n89   return 0;
n97   return a - bn97   return a - b;
n116<SCRIPT>n116<script>
117a = new Array();117var a = [];
n130document.write("<BR><BR>");n130document.write("<br>");
t132</SCRIPT>t132</script>

Back to History