gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 15 forks source link

File size does not take units into account #2067

Closed tuli closed 1 week ago

tuli commented 2 weeks ago

Describe the bug The Files tab in GigaDB records allows the user to sort by size, but the units are not taken into account, just the actual number so the sorted column is not correct.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://gigadb.org/dataset/102596
  2. Scroll down to the Files tab, click on the sort arrow. nb hovering shows "The size on disk of the file...."
  3. Sort by smallest first shows, 1.21 kb, 1.22 MB, 1.31 kb etc.

Expected behavior Difficult to work out but e.g. 1.22 MB should be below 1.31 kb

Screenshots Screenshot 2024-10-28 at 16 42 33

Desktop (please complete the following information): iOS Venture 13.4 Browser Safari Version 16.5

Additional context Add any other context about the problem here.