Fixed the rating sort