1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

Replace fileName weith sizeName

This commit is contained in:
zxj96
2019-05-29 15:20:34 +08:00
parent ae8365854e
commit 21d4dc0cde

View File

@@ -717,10 +717,10 @@ export const Utils = {
let aIndex = sizes.indexOf(aSuffixName);
let bIndex = sizes.indexOf(bSuffixName);
let aFileName = a.match(fileSizeName)[0];
let bFileName = b.match(fileSizeName)[0];
let aBytes = aFileName * (1000 ** aIndex);
let bBytes = bFileName * (1000 ** bIndex);
let aSizeName = a.match(fileSizeName)[0];
let bSizeName = b.match(fileSizeName)[0];
let aBytes = aSizeName * (1000 ** aIndex);
let bBytes = bSizeName * (1000 ** bIndex);
return aBytes < bBytes ? -1 : 1;
},