JPA Page Sort

Pageable sortedByName = PageRequest.of(0, 3, Sort.by("name")); 
Pageable sortedByPriceDesc = PageRequest.of(0, 3, Sort.by("price").descending()); 
Pageable sortedByPriceDescNameAsc = PageRequest.of(0, 5, Sort.by("price").descending().and(Sort.by("name")));
Thoughtless Termite