C# Collection - Order by an element (Rotate)

后端 未结 6 551
迷失自我
迷失自我 2021-01-23 17:05

I have an IEnumerable collection. Lets say it contains 5 points (in reality it is more like 2000)

I want to order this collection so that a spe

6条回答
  •  青春惊慌失措
    2021-01-23 17:36

    Another alternative to the Linq method shown by ulrichb would be to use the Queue Class (a fifo collection) dequeue to your index, and enqueue the ones you have taken out.

提交回复
热议问题