Sort by priority.