Sorting issues by type and priority