Commit 7885a7ce authored by Erik Reider's avatar Erik Reider

Fixed CC sorter not checking if notification time is the same

parent a054e5af
......@@ -201,9 +201,9 @@ namespace SwayNotificationCenter {
var b = (Notification) w2;
if (a == null || b == null) return 0;
// Sort the list in reverse if needed
int val1 = list_reverse ? 1 : -1;
int val2 = list_reverse ? -1 : 1;
return a.param.time > b.param.time ? val1 : val2;
if (a.param.time == b.param.time) return 0;
int val = list_reverse ? 1 : -1;
return a.param.time > b.param.time ? val : val * -1;
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment