From db9c55ff5e92b2ac476cfa4fa7c5dff4f126fb85 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 4 Sep 2012 00:46:55 +0200 Subject: [PATCH] in cached getSortValue function, use a cheaper args to key function --- source/Ox/js/Array.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index b9a52d02..f7d006aa 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -612,7 +612,9 @@ Ox.range = function() { }); } return sortValue; - }); + }, {key: function(args) { + return args[0]; + }}); /*@ Ox.sort Sorts an array, handling articles and digits, ignoring capitalization