I have an algorithm that outputs a list in a specific order, for example:
[0 4 3 2 1 5]
I want to reorder the list to start with the element '1' and keep the sequence, so my output would be:
[1 5 0 4 3 2]
I've searched and tried different possibilities but I'm still struggling with it.
How can I make this work?