The sorting wasn't working properly in the backend so I changed the sorting.
It works, but I'm not really proud of the code so if anyone has improvements feel free!
What I changed:
The function sortFolderEntries with a switch statement and a bunch of usorts.
Xclass on Core/Resource/File because the modification time wasn't coming from the storage (but the FAL object?). Not sure if this is the nicest way but it seems to be working.
The sorting wasn't working properly in the backend so I changed the sorting. It works, but I'm not really proud of the code so if anyone has improvements feel free!
What I changed: