C#C
C#4y ago
84 replies
Ossie

Shifting a List(int) to become 1,2,3,4,5...

Hi, If I have a List like this:
2,3,4,5

And I would like for it to become:
1,2,3,4,4

This should be done by taking from the higher numbers in the list shifting them to the left so they come in order like above, how would I do that?
Was this page helpful?