Make non-empty textual columns come first in sorting

Authored by nazark on Sep 1 2019, 3:48 PM.

Description

Make non-empty textual columns come first in sorting

Summary:

Current behavior of dolphin in sorting of files with textual columns (e.g. tags) is to show files without this particular textual column (e.g. without tags) first.
This patch changes this behavior so that dolphin shows the files with some value before the files without any value for chosen sorting method.

BUG: 410538

Test Plan:
Sorting by name (isn't affected by the patch): https://i.imgur.com/eqbYwyZ.png
Sorting by textual column ("tags" in this particular example),
old version (non-tagged files and folders come first): https://i.imgur.com/5KLLujU.png
patched version (tagged files and folders come first): https://i.imgur.com/oUAeZ2z.png

Reviewers: Dolphin, VDG, ngraham

Reviewed By: Dolphin, VDG, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: Dolphin

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

Details