From 7cebbb8f4275e373bf2b709aa72b950a9f2f9004 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 8 Oct 2022 21:34:43 +0200 Subject: [PATCH] Switch group sort. --- source/group_data/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/group_data/mod.rs b/source/group_data/mod.rs index f752912..cce5f09 100644 --- a/source/group_data/mod.rs +++ b/source/group_data/mod.rs @@ -44,7 +44,7 @@ impl GroupDataModel { name: &str, ) -> Result> { let groups = GroupDataEntity::find() - .order_by_desc(GroupDataColumn::SnapshotId) + .order_by_asc(GroupDataColumn::SnapshotId) .filter(GroupDataColumn::Name.eq(name)) .limit(amount) .all(db)