Python, ordinarily, orders this smallest to largest. We use `reverse=True`, so we get things largest to smallest. So, we prefer higher scores, and higher index values. Since the current task state has the highest index, it will be preferred in the event that it has the same score as another task_state.