Fixed sorting by size of file list

(cherry picked from commit 6906584)
This commit is contained in:
Gina Häußge committed 2015-07-07 18:39:06 +02:00
1 parent 811ffc760f
commit ced286854c
1 file changed
+2 -2
@@ -47,8 +47,8 @@ $(function() {
},
"size": function(a, b) {
// sorts descending
if (b["bytes"] === undefined || a["bytes"] > b["bytes"]) return -1;
if (a["bytes"] < b["bytes"]) return 1;
if (b["size"] === undefined || a["size"] > b["size"]) return -1;
if (a["size"] < b["size"]) return 1;
return 0;
}
},