From a9a3661cf397ccc5f4a80f955469a4d9ec0caca1 Mon Sep 17 00:00:00 2001 From: Mavroudis Chatzilazaridis Date: Mon, 20 May 2024 00:20:37 +0300 Subject: [PATCH] Fix inverted alphabetical device sorting order QSortFilterProxyModel attempted to sort in ascending order but due to this issue, it instead ended up sorting in descending order. --- interfaces/devicessortproxymodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/devicessortproxymodel.cpp b/interfaces/devicessortproxymodel.cpp index 171e2da23..9f4e31cfb 100644 --- a/interfaces/devicessortproxymodel.cpp +++ b/interfaces/devicessortproxymodel.cpp @@ -34,7 +34,7 @@ bool DevicesSortProxyModel::lessThan(const QModelIndex &left, const QModelIndex QString nameLeft = model->data(left, DevicesModel::NameModelRole).toString(); QString nameRight = model->data(right, DevicesModel::NameModelRole).toString(); - return nameLeft > nameRight; + return nameLeft < nameRight; } bool DevicesSortProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const