Sorting with List.GroupByKey

If you want both lists to be in the same order then just Sort first and then Group like you did in the second part. I don’t think there’s any reason to group the first time.

2 Likes