I have a column, Size, that will have file sizes expressed like this: 8KB, 2KB, 2,048KB, 10MB, etc.
Sorting does not work with int or str. Is there a “smart” sorting routine that recognizes commas, KB is smaller than MB, GB is bigger that MB, etc…?
I have a column, Size, that will have file sizes expressed like this: 8KB, 2KB, 2,048KB, 10MB, etc.
Sorting does not work with int or str. Is there a “smart” sorting routine that recognizes commas, KB is smaller than MB, GB is bigger that MB, etc…?