Implement ability to sort pages.