Qt: Fix a couple of instances of inconsistent sorting

This commit is contained in:
Stenzek committed 2024-07-04 13:25:26 +10:00
1 parent 63b30e2925
commit 7927ec647f
6 files changed
+46 -16

No files matched your search

@@ -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));