Skip to content

Commit

Permalink
PI-1939 - order events by descending event number by default (#3542)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj authored Mar 26, 2024
1 parent bfa5ad1 commit e2d09e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ interface EventSentenceRepository : JpaRepository<Event, Long> {
"LEFT JOIN FETCH m.offence mo " +
"LEFT JOIN FETCH ao.offence aoo " +
"WHERE e.personId = :id " +
"AND e.active = true "
"AND e.active = true " +
"ORDER BY e.eventNumber DESC "
)
fun findActiveSentencesByPersonId(id: Long): List<Event>
}
Expand Down

0 comments on commit e2d09e8

Please sign in to comment.