aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/composer/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/composer/detection.cpp b/engines/composer/detection.cpp
index dd1ce2751c..72a8f8256f 100644
--- a/engines/composer/detection.cpp
+++ b/engines/composer/detection.cpp
@@ -514,7 +514,6 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const {
Common::String pattern = Common::String::format("%s.??", target);
filenames = saveFileMan->listSavefiles(pattern);
- sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
@@ -531,6 +530,7 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const {
}
}
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}