1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Fix #12533: Track designs list does not use natural sorting (#12537)

This commit is contained in:
Tulio Leao
2020-08-03 20:42:54 -03:00
committed by GitHub
parent 0809069e74
commit bf0c4c4f0e
2 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
#include "../object/ObjectRepository.h"
#include "../object/RideObject.h"
#include "../ride/RideData.h"
#include "../util/Util.h"
#include "TrackDesign.h"
#include <algorithm>
@@ -319,7 +320,7 @@ private:
{
return a.RideType < b.RideType;
}
return String::Compare(a.Name, b.Name) < 0;
return strlogicalcmp(a.Name.c_str(), b.Name.c_str()) < 0;
});
}