mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Merge pull request #2741 from Laserlicht/folder_order
[fix] folder order
This commit is contained in:
commit
2057624cbc
@ -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…
Reference in New Issue
Block a user