Fixed sorting by size of file list
This commit is contained in:
parent
ea53fd368a
commit
6906584892
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ $(function() {
|
||||||
},
|
},
|
||||||
"size": function(a, b) {
|
"size": function(a, b) {
|
||||||
// sorts descending
|
// sorts descending
|
||||||
if (b["bytes"] === undefined || a["bytes"] > b["bytes"]) return -1;
|
if (b["size"] === undefined || a["size"] > b["size"]) return -1;
|
||||||
if (a["bytes"] < b["bytes"]) return 1;
|
if (a["size"] < b["size"]) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue