fixed popularity sort
Merge pull request #23 from simensta/sorting-feature

fixed popularity sort