andrewplummer/Sugar — Issue #110: Array.sortBy does not sort correctly
Author: gaiottino
Created: 2012-02-23 18:42:19+00:00
State: open

It does not handle 0 correctly.

[0, 1, 2, 3, 4, 5, 6].sortBy(function(n) { return n}) results in [1,2,3,4,5,6,0]

Created a simple fiddle here do demonstrate: http://jsfiddle.net/B87Ay/