I\'m trying to learn Spring on my own, and I\'m planning to do that by creating a blog web app. I already have the basic blog functionality working, which is a page to display b
There is an extension to CrudRepository called PagingAndSortingRepository
public interface PostRepository extends PagingAndSortingRepository {}
Then just call .findAll(new Sort(Sort.Direction.DESC, "id")); instead of findAllOrderByIdDesc();