sorting for title and score working