TheRealCatherine / StageMechanic

Mirror of the official GitLab hosted project
BSD 3-Clause "New" or "Revised" License
14 stars 2 forks source link

Use Natural Sorting in the file dialogs #47

Open TheRealCatherine opened 6 years ago

TheRealCatherine commented 6 years ago

Right now you get things like:

1-SomeLevel.json 10-SomeOtherLevel.json 2-Level2.json 3-Level3.json ...

because the filenames are alphabetically instead of naturally sorted. There is lots of old advice on how to do this floating around using P/Invoke and a Windows XP-era DLL. This is not how we should do it - we need to find a cross-platform and modern solution.

TheRealCatherine commented 6 years ago

Note: file dialogs are under 3rdParty/FileBrowser (and/or 3rdParty/GraceGames) and opened from UIManager which then calls methods in Serializer