Sort pages based on title.