I using micronuat Data with JPA to access the MySQL table. findall return all the data, now I want sort the output by createdat
datetime filed.
@Get("/")
List<Book> all() {
return bookRepository.findAll()
}
How to sort this value by createdat field? Thanks