Skip to content

Commit

Permalink
standard sort by createdat
Browse files Browse the repository at this point in the history
  • Loading branch information
akselsf committed Dec 24, 2024
1 parent a3edc41 commit 9403e40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ReceiptAdminService {
val sort = if (!sortField.isNullOrEmpty()) {
Sort.by(Sort.Direction.fromString(sortOrder ?: "ASC"), sortField)
} else {
Sort.unsorted()
Sort.by(Sort.Direction.DESC, "receiptCreatedAt")
}

val pageable = PageRequest.of(from, count, sort)
Expand Down

0 comments on commit 9403e40

Please sign in to comment.