fix sorting for ints and percents
Merge pull request #2 from qbit/sorting

fix sorting for ints and percents