The image preview is in landscape orientation, but the dimensions are displayed in portrait orientation. The dimension reading did not take the image's Exif rotation information into account.
I am not sure if this is a setting or a bug. The tree list is not sorted according to Windows rules, but when entering a folder individually, the sorting is correct.
It's because those are the image's real dimensions, and the image has an EXIF rotation tag set to 270 degrees.
Maybe we should transpose the dimensions if EXIF rotation is enabled in Preferences, although anything to do with EXIF rotation is always a can of worms that will cause problems for someone else if we change it.
I've made a note to look at it in more detail when time permits.
I agree that this needs careful consideration before making any adjustments. Looking forward to any further insights or potential solutions you come up with. Let me know if there's anything I can assist with!