Implemented sorting and paging
Sorting and paging