The sorting by size in the import view was not functioning.
Why
The size field of imported resources was returned in a human-readable format, while the sorting algorithm expected the size in bytes.
How
The backend has been updated to return sizes in bytes. However, existing files' data, which is persisted as human-readable strings, needed to be handled. The sorting algorithm was kept the same, sorting by bytes. Before sorting, the value is now converted to bytes, regardless of whether it is in a human-readable format or not.
What
The sorting by size in the import view was not functioning.
Why
The size field of imported resources was returned in a human-readable format, while the sorting algorithm expected the size in bytes.
How
The backend has been updated to return sizes in bytes. However, existing files' data, which is persisted as human-readable strings, needed to be handled. The sorting algorithm was kept the same, sorting by bytes. Before sorting, the value is now converted to bytes, regardless of whether it is in a human-readable format or not.