Codechange: use std::sort() to sort file lists

This commit is contained in:
glx
2019-04-11 22:52:41 +02:00
committed by PeterN
parent b52561fd38
commit 5b77102b63
3 changed files with 12 additions and 15 deletions

View File

@@ -260,8 +260,7 @@ static void SortSaveGameList(FileList &file_list)
}
}
size_t s_amount = file_list.Length() - sort_start - sort_end;
QSortT(file_list.Get(sort_start), s_amount, CompareFiosItems);
std::sort(file_list.files.begin() + sort_start, file_list.files.end() - sort_end);
}
struct SaveLoadWindow : public Window {