Fix sorting to use locale-aware comparisons

Authored by jen6 on Apr 25 2019, 7:41 PM.

Description

Fix sorting to use locale-aware comparisons

In TreeItem, there are two compare functions, itemNameLessThan() and
itemDescriptionLessThan().
These two functions were using < operator to compare strings, which does
not consider the user's locale.

So change compare function to QString::localeAwareCompare()

TEST PLAN

Based on bug attachment, I add the Á and A to test it.

BUG: 404393
FIXED-IN: 5.16.0

Differential Revision: https://phabricator.kde.org/D20386

Details

Committed
cfeckApr 25 2019, 7:41 PM
Differential Revision
D20386: Change TreeItem Compare function from < operator to QString::localeAwareCompare
Parents
R103:e9107e050ecd: port to std::sort
Branches
Unknown
Tags
Unknown