mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
GUI: Place empty metadata games last when sorting
This commit is contained in:
parent
7e69d548d7
commit
75231868db
@ -107,7 +107,12 @@ void GroupedListWidget::sortGroups() {
|
||||
_list.clear();
|
||||
_listIndex.clear();
|
||||
|
||||
Common::sort(_groupHeaders.begin(), _groupHeaders.end());
|
||||
Common::sort(_groupHeaders.begin(), _groupHeaders.end(),
|
||||
[](const Common::String &first, const Common::String &second) {
|
||||
return first.empty() ? 0 : second.empty() ? 1 : first < second;
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
uint curListSize = 0;
|
||||
for (uint i = 0; i != _groupHeaders.size(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user