fix #9 also use tomatoes to sort and calculate rating