Fix sorting by rating