Sort by file size ignores kiB, MiB, GiB and decimal points
theonlytruth opened this issue · 1 comments
theonlytruth commented
The function to sort a list of packages by file size doesn't work as expected. It seems to sort more like alphabetical then by the real file size.
Example:
Actual sorting:
47.5 MiB
504.3 KiB
51.6 KiB
511 MiB
51.6 MiB
52.9 MiB
53 MiB
54.6 MiB
5.8 GiB
66.9 MiB
Should be:
51.6 KiB
504.3 KiB
47.5 MiB
51.6 MiB
52.9 MiB
53 MiB
54.6 MiB
66.9 MiB
511 MiB
5.8 GiB
schorschii commented
You discovered a nice bug here. This only happens if the table contains packages without archives (showing "not found" in the size column"). I'll fix that.