|
@@ -1614,12 +1614,16 @@ let repositoryGljObj = {
|
|
|
},
|
|
|
sortGljDeep: function (datas) {
|
|
|
function recurCompare(a, b, index){
|
|
|
- if (a[index] && b[index]) {
|
|
|
+ if (a[index] && !b[index]) {
|
|
|
+ return 1;
|
|
|
+ } else if (!a[index] && b[index]) {
|
|
|
+ return -1;
|
|
|
+ } else if (a[index] && b[index]) {
|
|
|
let aV = a[index],
|
|
|
bV = b[index];
|
|
|
if (!isNaN(aV) && !isNaN(bV)) {
|
|
|
- aV = parseFloat(a[index]),
|
|
|
- bV = parseFloat(b[index]);
|
|
|
+ aV = parseFloat(a[index]);
|
|
|
+ bV = parseFloat(b[index]);
|
|
|
}
|
|
|
if (aV > bV) {
|
|
|
return 1;
|