sort by date, priority, and limit pages