Qt: Fix a couple of instances of inconsistent sorting

This commit is contained in:
Stenzek
2024-07-03 17:36:08 +10:00
parent 63b30e2925
commit 7927ec647f
6 changed files with 46 additions and 16 deletions

View File

@ -162,7 +162,8 @@ void MemoryCardEditorWindow::populateComboBox(QComboBox* cb)
FileSystem::FindResultsArray results;
FileSystem::FindFiles(EmuFolders::MemoryCards.c_str(), "*.mcd",
FILESYSTEM_FIND_FILES | FILESYSTEM_FIND_RELATIVE_PATHS, &results);
FILESYSTEM_FIND_FILES | FILESYSTEM_FIND_RELATIVE_PATHS | FILESYSTEM_FIND_SORT_BY_NAME,
&results);
for (FILESYSTEM_FIND_DATA& fd : results)
{
std::string real_filename(Path::Combine(EmuFolders::MemoryCards, fd.FileName));