Open
Description
I use PagingAndSortingRepository.
And I try to get pageable parameter by request like this:
@GetMapping("/find")
public Page<Data> find(@PageableDefault(size = Integer.MAX_VALUE, sort = "timestamp") final Pageable pageable) {
return dataRepository.findAll(pageable);
}
But when I try to use Page findAll(Pageable pageable) I catch UnsupportedOperationException:
"Sorting not supported for find all scan operations".
Is there any way to sort data? Thanks!