|
|
@ -81,8 +81,8 @@ define(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return function (left, right) {
|
|
|
|
return function (left, right) {
|
|
|
|
var l = sortValue(left, sortKey);
|
|
|
|
var l = sortValue(left, sortKey, order);
|
|
|
|
var r = sortValue(right, sortKey);
|
|
|
|
var r = sortValue(right, sortKey, order);
|
|
|
|
var t;
|
|
|
|
var t;
|
|
|
|
|
|
|
|
|
|
|
|
if (order === 1) {
|
|
|
|
if (order === 1) {
|
|
|
@ -94,8 +94,8 @@ define(
|
|
|
|
if (l === r) {
|
|
|
|
if (l === r) {
|
|
|
|
|
|
|
|
|
|
|
|
if (secondarySorting) {
|
|
|
|
if (secondarySorting) {
|
|
|
|
var ls = secondarySorting.sortValue(left, secondarySorting.key);
|
|
|
|
var ls = secondarySorting.sortValue(left, secondarySorting.key, order);
|
|
|
|
var rs = secondarySorting.sortValue(right, secondarySorting.key);
|
|
|
|
var rs = secondarySorting.sortValue(right, secondarySorting.key, order);
|
|
|
|
var ts;
|
|
|
|
var ts;
|
|
|
|
|
|
|
|
|
|
|
|
if (secondarySorting.order === 1) {
|
|
|
|
if (secondarySorting.order === 1) {
|
|
|
|