fix sorting categories
Merge pull request #27 from alexeyradchuk/patch-6

fix sorting categories