Page 1 of 1

[1.1.71] Directories in file dialogues aren't sorted

Posted: Wed Nov 09, 2022 3:02 pm
by Fiorra
Hello,

The file dialogues (for loading/saving) sort files by name, but directories aren't sorted and thus shown in the order returned by readdir(). Most players won't notice, because Windows (using NTFS) usually returns entries in alphabetical order - but that is neither guaranteed, nor do other file systems match that behaviour.

Proof (Linux, using ext4):
unsorted_directories.jpg
unsorted_directories.jpg (815.17 KiB) Viewed 1687 times
(this matches the on-disk order as confirmed by ls -U)

Title says 1.1.71, but it has been around for much longer than that. It's just a minor annoyance, but maybe the fix is a simple as adding a .sort() in the right place?

Re: [1.1.71] Directories in file dialogues aren't sorted

Posted: Sun Nov 27, 2022 3:25 pm
by Genhis
Thanks for the report. The issue should be fixed for the next release.