Concept Flow - Pagination and sorting with Pageable
Client sends request with page, size, sort
Controller receives Pageable object
Repository queries DB with Pageable
DB returns page of sorted data
Controller returns Page<T> response
Client receives paged, sorted data
The client sends paging and sorting info, the controller uses Pageable to query the database, and returns a page of sorted data.