mirror of
https://github.com/joel16/VITA-Homebrew-Sorter.git
synced 2024-11-26 21:00:27 +00:00
applist: Fix compile error with compare function
This commit is contained in:
parent
8b4f955a4d
commit
839502ed39
@ -290,7 +290,7 @@ namespace AppList {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool Compare(const std::string &nameA, const std::string &nameB, SortOrder sortOrder) {
|
||||
static bool Compare(const std::string &nameA, const std::string &nameB, int sortOrder) {
|
||||
if (sortOrder == SortTitle) {
|
||||
return std::lexicographical_compare(nameA.begin(), nameA.end(), nameB.begin(), nameB.end(), [](char a, char b) {
|
||||
return std::tolower(a) < std::tolower(b);
|
||||
|
Loading…
Reference in New Issue
Block a user