chore: sort tree by length

This commit is contained in:
Pooya Parsa 2020-11-15 02:03:35 +01:00
parent ef85ddfbc9
commit 3939ea9e4d

View File

@ -14,7 +14,7 @@ export async function printFSTree (dir) {
const size = src.byteLength
const gzip = await gzipSize(src)
return { file, path, size, gzip }
}))).sort((a, b) => b.size - a.size)
}))).sort((a, b) => b.path.localeCompare(a.path))
let totalSize = 0
let totalGzip = 0