Use natural sorting in ActivityModel

Authored by davidedmundson on Feb 11 2019, 11:04 PM.

Description

Use natural sorting in ActivityModel

Summary:
ActivityModel sorts internally.
It currently does a non-locale or number aware sort on user-facing
strings.

This patches uses QCollator.

This changes the order in the KCM.

It doesn't affect the order in the activity switcher as that has it's
own sorting proxy on top handling last used time.

It doesn't quite fix the issue in the bug report as PagerModel mixes
sources.

CCBUG: 404149

Test Plan:
Set activities named
"10.asdf"
"1.foo"
"2.bar"

KCM now shows them in the order 1,2,10

Reviewers: Plasma

Subscribers: kde-frameworks-devel

Tags: Frameworks

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

Details

Committed
davidedmundsonFeb 12 2019, 12:55 PM
Differential Revision
D18957: Use natural sorting in ActivityModel
Parents
R6:836742a58e14: GIT_SILENT Upgrade KF5 version to 5.56.0.
Branches
Unknown
Tags
Unknown