fix sort rewards
Merge pull request #246 from adrianob/fix_sort_rewards

fix sort rewards