summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx2
-rw-r--r--include/i18nlangtag/languagetag.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 67047c61163e..552169700d40 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -2093,7 +2093,7 @@ bool LanguageTag::operator!=( const LanguageTag & rLanguageTag ) const
bool LanguageTag::operator<( const LanguageTag & rLanguageTag ) const
{
- return getLanguageType() < rLanguageTag.getLanguageType();
+ return getBcp47( false).compareToIgnoreAsciiCase( rLanguageTag.getBcp47( false)) < 0;
}
diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx
index 7f06f922b3cd..7e282bbd56c5 100644
--- a/include/i18nlangtag/languagetag.hxx
+++ b/include/i18nlangtag/languagetag.hxx
@@ -399,9 +399,9 @@ public:
*/
bool operator!=( const LanguageTag & rLanguageTag ) const;
- /** Test this less than that.
+ /** Test this LanguageTag less than that LanguageTag.
- For sorted containers. Internally uses the LanguageType for comparison.
+ For sorted containers. Does NOT resolve system.
*/
bool operator<( const LanguageTag & rLanguageTag ) const;