Implement proper equality for ratings and preferences