From 803985a1601d43eff8dfe7b7ad2ff9bbfe390532 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 1 Apr 2012 23:02:19 +0200 Subject: [PATCH] in Ox.api, only sort if more than two items --- 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 0d2d55f3..d6fa7f65 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -235,7 +235,7 @@ Ox.api = function(items, options) { } else { result.data.items = Ox.clone(items); } - if (options.sort) { + if (options.sort && result.data.items.length > 1) { // sort options.sort = parseSort(Ox.merge(options.sort, api.sort)); options.sort.forEach(function(v) {