Sort issues by priority.