gets issues ordered by rank