From 3008264261872ca238737ac505d7a4df0964b334 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Tue, 11 Feb 2025 21:39:06 +0100 Subject: [PATCH] fix default sort --- src/model/user/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/user/mod.rs b/src/model/user/mod.rs index 839b491..c700e76 100644 --- a/src/model/user/mod.rs +++ b/src/model/user/mod.rs @@ -591,7 +591,7 @@ WHERE lower(name)=? } pub async fn all(db: &SqlitePool) -> Vec { - Self::all_with_order(db, "last_access", true).await + Self::all_with_order(db, "last_access", false).await } pub async fn all_with_order(db: &SqlitePool, sort: &str, asc: bool) -> Vec {