┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dolphinsortfilterproxymodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinsortfilterproxymodel.cpp b/src/dolphinsortfilterproxymodel.cpp
index 95fb3854d..79d1e2f06 100644
--- a/src/dolphinsortfilterproxymodel.cpp
+++ b/src/dolphinsortfilterproxymodel.cpp
@@ -115,9 +115,9 @@ int DolphinSortFilterProxyModel::compareCategories(const QModelIndex &left,
const QString rightTags = DolphinModel::tagsForIndex(right);
if (leftTags.isEmpty() && !rightTags.isEmpty())
- return -1;
- else if (!leftTags.isEmpty() && rightTags.isEmpty())
return 1;
+ else if (!leftTags.isEmpty() && rightTags.isEmpty())
+ return -1;
return naturalCompare(DolphinModel::tagsForIndex(left), DolphinModel::tagsForIndex(right)) < 0;
}