From 5e951466dfd09e617a9ddbed1606773e191d1800 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 16 Apr 2019 15:38:06 +0200 Subject: [PATCH] [libcalamaresui] Sort languages by ISO code - this puts the Englishes together, and is less confusing than sorting with American first. --- src/libcalamaresui/utils/CalamaresUtilsGui.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libcalamaresui/utils/CalamaresUtilsGui.h b/src/libcalamaresui/utils/CalamaresUtilsGui.h index 6a036b218..49f94e6a4 100644 --- a/src/libcalamaresui/utils/CalamaresUtilsGui.h +++ b/src/libcalamaresui/utils/CalamaresUtilsGui.h @@ -154,11 +154,7 @@ public: */ bool operator <( const LocaleLabel& other ) const { - if ( isEnglish() ) - return !other.isEnglish(); - if ( other.isEnglish() ) - return false; - return m_sortKey < other.m_sortKey; + return m_localeId < other.m_localeId; } /** @brief Is this locale English?