Show metrics in locale aware collation order

Unicode order can be confusing for some locales
Reported in #3542
This commit is contained in:
Ale Martinez
2020-08-20 10:55:37 -03:00
parent 99fb4f551e
commit 39feb5807c

View File

@@ -124,7 +124,7 @@ class MetricDetail {
penColor(Qt::black), penAlpha(0), penWidth(1.0), penStyle(0),
brushColor(Qt::black), brushAlpha(0), fillCurve(false), labels(false), curve(NULL) {}
bool operator< (MetricDetail right) const { return name < right.name; }
bool operator< (MetricDetail right) const { return name.localeAwareCompare(right.name) < 0; }
int type;
bool stack; // should this be stacked?