mirror of https://github.com/stella-emu/stella.git
sorting improvement unreverted :)
This commit is contained in:
parent
3a136b4284
commit
da473f4803
|
@ -31,6 +31,10 @@ void GameList::sortByName()
|
||||||
|
|
||||||
auto cmp = [](const Entry& a, const Entry& b)
|
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();
|
auto it1 = a._name.cbegin(), it2 = b._name.cbegin();
|
||||||
|
|
||||||
// Account for ending ']' character in directory entries
|
// Account for ending ']' character in directory entries
|
||||||
|
|
Loading…
Reference in New Issue