fix Ox.sort, was broken in changeset:oxjs,2363

This commit is contained in:
j 2012-09-08 00:19:13 +02:00
parent 17bb6fb036
commit 7230606a6d

View file

@ -634,7 +634,6 @@ Ox.range = function() {
['The 9', 'The 10', 'An A', 'A "B"']
@*/
Ox.sort = function(array, map) {
var values = getSortValues(map ? array.map(map) : array);
return array.sort(function(a, b) {
a = getSortValue(map ? map(a) : a);
b = getSortValue(map ? map(b) : b);