Don't sort bots twice

deepcrayonfish^2
Benedikt Werner 2021-11-10 12:15:30 +01:00
parent 91da68fb61
commit 0479d71022
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 3 deletions

View File

@ -50,9 +50,7 @@ object bots {
private def botTable(users: List[User])(implicit ctx: Context) = table(cls := "slist slist-pad")(
tbody(
users.sortBy { u =>
(if (u.isVerified) -1 else 1, -u.playTime.??(_.total))
} map { u =>
users map { u =>
tr(
td(userLink(u)),
u.profile