keep equal ratings in a consistent order