I am trying Spring data JPA in my project. I want to know if there is an out-of-the-box API to query data, by both Sort and Pageable. Of course, I
Sort
Pageable
public List getAllData(Pageable pageable){ List models= new ArrayList<>(); modelRepository.findAllByOrderByIdDesc(pageable).forEach(models::add); return models; }