fix longestStreak detection, was broken after sorting change