sort by time and rating.