MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

tiffon

Member since
tiffon

Recent Docs Activity

View all activity
Page Date Comment

Array.prototype.sort()


Typo in the edit I made earlier: http://jsfiddle.net/hmk35hhf/2/

Array.prototype.sort()


Returning `0` for equal values can have significant performance benefits. Number of comparator invocations to sort a list of 1024 items: Chrome (2,050 vs 68,142), Firefox (9,045 vs 9,129), Safari (9,194 vs 9,194) jsfiddle: http://jsfiddle.net/hmk35hhf/1/

General sibling selectors