in Ox.api, only sort if more than two items
This commit is contained in:
parent
cd6bca7d6b
commit
803985a160
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ Ox.api = function(items, options) {
|
||||||
} else {
|
} else {
|
||||||
result.data.items = Ox.clone(items);
|
result.data.items = Ox.clone(items);
|
||||||
}
|
}
|
||||||
if (options.sort) {
|
if (options.sort && result.data.items.length > 1) {
|
||||||
// sort
|
// sort
|
||||||
options.sort = parseSort(Ox.merge(options.sort, api.sort));
|
options.sort = parseSort(Ox.merge(options.sort, api.sort));
|
||||||
options.sort.forEach(function(v) {
|
options.sort.forEach(function(v) {
|
||||||
|
|
Loading…
Reference in a new issue