Hey! I thought, I’ll get the number in the red circle equal to -1000. What have I done wrong?
Use List.SortByKey instead of List.GroupByKey
In your definition…
Remove List.Sort before List.GroupByKey
You cannot expect correct results after altering the order of the keys without correspondingly altering the order of the elements.
I still got a question.
List.SortByKey sorting the keys in some definite way. I dont know how can I sort the list in the way I want to. (with correspondingly altering the order of the elements.)
What task are you carrying out and what is the desired output? Im not sure why you are trying to sort the list?
New question = start new thread