Skip to content

Is sorting supported? #99

Open
Open
@astetsa

Description

@astetsa

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions