mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-29 00:04:35 +00:00
more stable sort users
This commit is contained in:
parent
158b934a7a
commit
dc4a5d1fe1
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ local function get_active_users()
|
||||||
table.insert(users, user)
|
table.insert(users, user)
|
||||||
end
|
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
|
return users
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue