I want to sort an array, so it starts off at 

```
order = [0,1,2,3,4,5]  #loop around trying all columns`

```

and then will go through, trying all combinations of this so 1,2,3,4,5,0 etc, and stop once it has tried all of them.

Is there anyway to do this in python?