Changed sorting for payed bills to descending. closes #298

This commit is contained in:
2017-04-25 20:36:14 +02:00
parent 6e2ee642ce
commit 8a651871d0
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ public:
const char *prop = rawEntity->metaObject()->property(column + 1).name();
std::sort(ALL(m_list), [prop, order](QSharedPointer<T> entA, QSharedPointer<T> entB) -> bool {
if (order == Qt::AscendingOrder) {
if (order == Qt::DescendingOrder) {
return ((QObject*)entA.data())->property(prop) < ((QObject*)entB.data())->property(prop);
} else {
return ((QObject*)entB.data())->property(prop) < ((QObject*)entA.data())->property(prop);