sorting improvement unreverted :)

This commit is contained in:
thrust26 2017-12-01 14:21:00 +01:00
parent 3a136b4284
commit da473f4803
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ void GameList::sortByName()
auto cmp = [](const Entry& a, const Entry& b)
{
// directories always first
if(a._isdir != b._isdir)
return a._isdir;
auto it1 = a._name.cbegin(), it2 = b._name.cbegin();
// Account for ending ']' character in directory entries