Dictionary of Int32, List<Int32>, sort each list and store back in dictionary

Hi, I have a Dictionary of Key:Int32, Value:List<Int32>, I want to sort each list and store it back in dictionary… how do I do this?

My concerns are that the list is only sorted and not stored back in the dictionary, and that storing back the List under the same key value would produce a conflict or error.

_Test.xaml (7.0 KB)

Try testing this thing and see if it works.