mozilla

tiffon

注册时间
tiffon

近期活跃的文档

查看所有活动
页面 日期 评论

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