[1.1.71] Directories in file dialogues aren't sorted

This subforum contains all the issues which we already resolved.
Post Reply
Fiorra
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Jan 27, 2021 2:12 pm
Contact:

[1.1.71] Directories in file dialogues aren't sorted

Post 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 383 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?

Genhis
Factorio Staff
Factorio Staff
Posts: 75
Joined: Wed Dec 24, 2014 8:19 am
Contact:

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

Post by Genhis »

Thanks for the report. The issue should be fixed for the next release.

Post Reply

Return to “Resolved Problems and Bugs”