Try repair paging and sorting

Repaired paging and sorting