Add rating sorting

Add rating sorting