Switch group sort.
This commit is contained in:
parent
b64b7836fa
commit
7cebbb8f42
|
@ -44,7 +44,7 @@ impl GroupDataModel {
|
||||||
name: &str,
|
name: &str,
|
||||||
) -> Result<Vec<Self>> {
|
) -> Result<Vec<Self>> {
|
||||||
let groups = GroupDataEntity::find()
|
let groups = GroupDataEntity::find()
|
||||||
.order_by_desc(GroupDataColumn::SnapshotId)
|
.order_by_asc(GroupDataColumn::SnapshotId)
|
||||||
.filter(GroupDataColumn::Name.eq(name))
|
.filter(GroupDataColumn::Name.eq(name))
|
||||||
.limit(amount)
|
.limit(amount)
|
||||||
.all(db)
|
.all(db)
|
||||||
|
|
Loading…
Reference in New Issue