From dc4a5d1fe1d8b1f7eadd0b315ff9f7c4fe0dce31 Mon Sep 17 00:00:00 2001 From: "Riley L." Date: Wed, 13 Nov 2024 00:39:43 +0100 Subject: [PATCH] more stable sort users --- abrechenbarkeit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index c209415..e683759 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -324,7 +324,7 @@ local function get_active_users() table.insert(users, user) end - table.sort(users, function(a, b) return a.time > b.time end) + table.sort(users, function(a, b) return ((a.time == b.time) and a.name > b.name) or (a.time > b.time) end) return users end