From 23bd717a8a2fe6660c6d3b0f4b2bdb2d5af5a9e6 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 26 Oct 2012 18:09:37 +0200 Subject: [PATCH] When caching sort values, make the type of the value part of the cache key (so that 9 and '9' don't collide) --- source/Ox/js/Array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index 5d4dd14a..2eb35de2 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -625,7 +625,7 @@ Ox.range = function() { } return sortValue; }, {key: function(args) { - return args[0]; + return Ox.typeOf(args[0]) + ' ' + args[0]; }}); /*@