Switch group sort.
This commit is contained in:
		
							parent
							
								
									b64b7836fa
								
							
						
					
					
						commit
						7cebbb8f42
					
				|  | @ -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) | ||||
|  |  | |||
		Reference in New Issue