more stable sort users

This commit is contained in:
Riley L. 2024-11-13 00:39:43 +01:00
parent 158b934a7a
commit dc4a5d1fe1

View file

@ -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