From 39feb5807c2d31d07ff81cb947976d4d633e2406 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Thu, 20 Aug 2020 10:55:37 -0300 Subject: [PATCH] Show metrics in locale aware collation order Unicode order can be confusing for some locales Reported in #3542 --- src/Charts/LTMSettings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Charts/LTMSettings.h b/src/Charts/LTMSettings.h index 4a3991cf1..5baf00704 100644 --- a/src/Charts/LTMSettings.h +++ b/src/Charts/LTMSettings.h @@ -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?