Added sorting for menu directory items. Some OSes list the files in order of date in stead of name.

This commit is contained in:
Pieter Hulshoff 2019-11-27 23:13:16 +01:00
parent 976879f580
commit c5cfa7b8fb
2 changed files with 2 additions and 1 deletions

View File

@ -97,6 +97,7 @@ bool MenuParser::buildTextMenu(CollectionInfo *collection, bool sort)
}
closedir(dp);
std::sort(menuItems.begin(), menuItems.end(), [](Item *a, Item *b) {return Utils::toLower(a->fullTitle) <= Utils::toLower(b->fullTitle);});
}
else

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "9";
std::string retrofe_version_build = "13";
std::string retrofe_version_build = "14";
std::string Version::getString( )