diff --git a/source/group_data/mod.rs b/source/group_data/mod.rs index cce5f09..28be0cc 100644 --- a/source/group_data/mod.rs +++ b/source/group_data/mod.rs @@ -19,7 +19,12 @@ impl GroupDataModel { db: &DatabaseConnection, snapshot: &SnapshotModel, ) -> Result> { - let groups = snapshot.find_related(GroupDataEntity).all(db).await?; + let groups = snapshot + .find_related(GroupDataEntity) + .order_by_asc(GroupDataColumn::Name) + .all(db) + .await?; + Ok(groups) }