Diffusion Juk 81c0dcc278a9

Fix columns sorting.

Authored by kkasper on Jan 26 2018, 11:04 PM.

Description

Fix columns sorting.

Summary:
QTreeWidgetItem in Qt5 requires overloading < operator to implement
custom sorting. Use existing compare methods to do that.

Additionally, natural sorting was implemented for strings.
This allows to sort by filenames like file_<number>.

BUG:389130

Test Plan:
Click on columns to sort them.
Columns are sorted by artist, album and track number.

Reviewers: mpyne

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

Details

Committed
kkasperJan 28 2018, 2:13 PM
Differential Revision
D10130: Fix columns sorting.
Parents
R344:516a69f91712: Refactor and extract SearchPlaylist's playlist item sync code.
Branches
Unknown
Tags
Unknown