ssec / sift

A visualization application for satellite imagery
http://sift.ssec.wisc.edu/
GNU General Public License v3.0
46 stars 13 forks source link

Numbers sorted incorrectly in selection dialogues #392

Open gerritholl opened 7 months ago

gerritholl commented 7 months ago

Numeric values are sorted incorrectly in both the file selection wizard and the dataset selection dialogues.

Example from the file selection wizard when selecting FCI L1C data:

image

Note how repeat_cycle_in_day goes from 19 to 2. When we scroll down (not shown), after 2 comes 20.

Similar behaviour we see for the wavelength in the product selection dialogue:

image

Here, 2.25 µm comes after 13.30 µm instead of after 1.61 µm.

(Separately, the columns Resolution, Calibration, and Level are suddenly blank; this was not the case a bit ago and is a separate issue)

djhoese commented 7 months ago

Thanks for filing the issue. I think this should be "easy" to implement for the filename selection since that information is all being extracted from the filename pattern and as long as that pattern marks a field as d or other numeric format type then I think the dictionary of filename info would also be a number. We just need to tell Qt it is a number.

For the wavelengths or anything in the product list, this may be a little harder since it is including the units in the Qt column, but this shouldn't really be much more difficult...I hope.