Merge pull request #43 from kareth/master

sort group rank
fix attempts refresh