UI: Programs: Improve sorting by "State" column

Alerted programs are always on top.
This commit is contained in:
Nodir Temirkhodjaev 2023-01-13 15:24:20 +03:00
parent 0729dd979d
commit 20482773c2

View File

@ -323,7 +323,7 @@ QString AppListModel::sqlOrderColumn() const
columnsStr = "2";
break;
case 3: // State
columnsStr = "7 " + sqlOrderAsc() + ", 8, 9";
columnsStr = "8 DESC, 7 " + sqlOrderAsc() + ", 1";
break;
default: // Creation Time
columnsStr = "1"; // App ID