Sort by severity and priority.