Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08167 Misc. Minor Always Dec 29, 2021, 08:11 Jan 11, 2022, 02:40
Tester Augusto View Status Public Platform SDLMAME
Assigned To cuavas Resolution Fixed OS Linux (64-bit)
Status [?] Resolved Driver
Version 0.238 Fixed in Version 0.240 Build 64-bit
Fixed in Git Commit e14fec6 Github Pull Request #
Summary 08167: Browsing folders are sorted by date
Description When browsing for config paths the folders path are sorted by date.
The correct is sort by name.
Anyone can test the Windows version if also happen the same issue ?
Have a nice week.
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
png file icon Untitled.png (383,996 bytes) Jan 4, 2022, 07:55 Uploaded by Augusto
Augusto
Relationships
There are no relationship linked to this issue.
Notes
10
User avatar
No.19607
Robbbert
Senior Tester
Dec 31, 2021, 00:14
In Windows it's sorted by name, but it's case sensitive, which is incorrect. It should sort the way Windows Explorer does.
User avatar
No.19621
Fujix
Administrator
Jan 4, 2022, 04:57
In the Japanese version of Windows 10, folders are sorted by alphabetically without case.
It's just the same as Explorer.
User avatar
No.19622
Augusto
Tester
Jan 4, 2022, 06:12
The issue is about the Linux version.
Using Ubuntu 20.04.3 and SDLMAME 0.239.
The folders are sorted by date.
User avatar
No.19625
Tafoid
Administrator
Jan 5, 2022, 02:14
edited on: Jan 5, 2022, 02:16
So, this isn't a MAME issue, but an OS configuration issue - is that correct?
Mine shows alphabetical when searching for folders to add and I don't think it is something MAME controls.
User avatar
No.19633
Augusto
Tester
Jan 5, 2022, 08:47
All other softwares browse folders in sorted by name.
Not look being a OS configuration.
User avatar
No.19647
cuavas
Administrator
Jan 6, 2022, 19:33
I would’ve thought that since AJR put in locale-aware sorting this should be fixed on all operating systems.
User avatar
No.19648
cuavas
Administrator
Jan 6, 2022, 19:43
Actually, that’s not the same menu, it’s a different thing. It’s also a menu hard-coded to use Tab to select an item, no way to use it with a gamepad.
User avatar
No.19649
cuavas
Administrator
Jan 6, 2022, 20:17
Menus for adding or changing folders were not being sorted, so the items were appearing in whatever order the filesystem returned them. Should sort in locale collation order now. Also fixed an issue with “..” only allowing you to move up one directory level after which it wouldn’t change directory at all.
User avatar
No.19651
AJR
Developer
Jan 6, 2022, 20:35
Locale-aware file sorting was not actually added by me, despite GitHub's blame display. It appears to have been originally introduced by mahlemiut in commit 63b7b9d521712404dc35156ef8d7e606440b4156.
User avatar
No.19672
Augusto
Tester
Jan 11, 2022, 02:40
Thanks