fixed popularity sort