helper method to get pages ordered by menu