Fix comparator for label text

Fixes #62045
This commit is contained in:
Nyall Dawson 2025-06-02 14:21:45 +10:00
parent c349130418
commit 92c9a19691

View File

@ -477,7 +477,7 @@ bool labelLessThan( const QgsRendererCategory &c1, const QgsRendererCategory &c2
bool labelGreaterThan( const QgsRendererCategory &c1, const QgsRendererCategory &c2 )
{
return !labelLessThan( c1, c2 );
return QString::localeAwareCompare( c1.label(), c2.label() ) > 0;
}
void QgsCategorizedSymbolRenderer::sortByLabel( Qt::SortOrder order )