mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Merge pull request #2741 from Laserlicht/folder_order
[fix] folder order
This commit is contained in:
commit
2057624cbc
@ -55,7 +55,11 @@ 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();
|
||||
|
Loading…
Reference in New Issue
Block a user