Skip to content

Commit

Permalink
Fix: sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 14, 2021
1 parent e10113d commit 9c218db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/postgres/operation/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,5 @@ func periodToRange(query *gorm.DB, period string) error {
}

func addOperationSorting(query *gorm.DB) {
query.Order("level desc, counter desc, id desc")
query.Order("level desc, counter desc, id asc")
}

0 comments on commit 9c218db

Please sign in to comment.