bloody fixed a typo and sort issues by rank