Switch group sort.

This commit is contained in:
Bauke 2022-10-08 21:34:43 +02:00
parent b64b7836fa
commit 7cebbb8f42
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ impl GroupDataModel {
name: &str,
) -> Result<Vec<Self>> {
let groups = GroupDataEntity::find()
.order_by_desc(GroupDataColumn::SnapshotId)
.order_by_asc(GroupDataColumn::SnapshotId)
.filter(GroupDataColumn::Name.eq(name))
.limit(amount)
.all(db)