From e75367ab3bfa75d1e08b107511f468086f8c3112 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 17 Apr 2015 23:48:18 +0200 Subject: SCI: sort qfg import files alphabetically --- engines/sci/engine/file.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/file.cpp b/engines/sci/engine/file.cpp index 2ba7d15ac0..623caec856 100644 --- a/engines/sci/engine/file.cpp +++ b/engines/sci/engine/file.cpp @@ -252,6 +252,9 @@ void DirSeeker::addAsVirtualFiles(Common::String title, Common::String fileMask) Common::SaveFileManager *saveFileMan = g_sci->getSaveFileManager(); Common::StringArray foundFiles = saveFileMan->listSavefiles(fileMask); if (!foundFiles.empty()) { + // Sort all filenames alphabetically + Common::sort(foundFiles.begin(), foundFiles.end()); + _files.push_back(title); _virtualFiles.push_back(""); Common::StringArray::iterator it; -- cgit v1.2.3