mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed an issue where folders in mixed gamelists were not always sorted correctly.
This commit is contained in:
parent
da93533aed
commit
8013e04d2c
|
@ -538,7 +538,7 @@ void FileData::sort(ComparisonFunction& comparator,
|
|||
getSortTypeFromString("filename, ascending").comparisonFunction);
|
||||
}
|
||||
|
||||
if (foldersOnTop && mOnlyFolders)
|
||||
if (foldersOnTop)
|
||||
std::stable_sort(mChildrenFolders.begin(), mChildrenFolders.end(), comparator);
|
||||
|
||||
std::stable_sort(mChildrenOthers.begin(), mChildrenOthers.end(), comparator);
|
||||
|
@ -685,7 +685,7 @@ void FileData::sortFavoritesOnTop(ComparisonFunction& comparator,
|
|||
}
|
||||
|
||||
// Sort favorite games and the other games separately.
|
||||
if (foldersOnTop && mOnlyFolders) {
|
||||
if (foldersOnTop) {
|
||||
std::stable_sort(mChildrenFavoritesFolders.begin(), mChildrenFavoritesFolders.end(),
|
||||
comparator);
|
||||
std::stable_sort(mChildrenFolders.begin(), mChildrenFolders.end(), comparator);
|
||||
|
|
Loading…
Reference in a new issue