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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -58,6 +58,7 @@
- Fix: [#12498] Circus construction ghost does not rotate (original bug).
- Fix: [#12505] Stores selling multiple items can only have the first product advertised.
- Fix: [#12506] Cannot advertise food if there are no rides in the park.
- Fix: [#12533] Track designs list does not use natural sorting.
- Fix: 'j' character has broken kerning (original bug).
- Fix: RCT1 scenarios have more items in the object list than are present in the park or the research list.
- Fix: Brakes keep working during "Brakes failure".

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;
});
}