mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
up should be first
This commit is contained in:
parent
9af73c2212
commit
e0460a0dec
@ -55,8 +55,12 @@ bool mapSorter::operator()(const std::shared_ptr<ElementInfo> aaa, const std::sh
|
||||
if(aaa->isFolder != bbb->isFolder)
|
||||
return (aaa->isFolder > bbb->isFolder);
|
||||
else
|
||||
{
|
||||
if(boost::algorithm::starts_with(aaa->folderName, "..") || boost::algorithm::starts_with(bbb->folderName, ".."))
|
||||
return boost::algorithm::starts_with(aaa->folderName, "..");
|
||||
return boost::ilexicographical_compare(aaa->folderName, bbb->folderName);
|
||||
}
|
||||
}
|
||||
|
||||
auto a = aaa->mapHeader.get();
|
||||
auto b = bbb->mapHeader.get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user