I have an array with the following structure, and I want to sort it in an odd way.

```
Array(10,9,8,7,6,5,4,3,2,1)

```

I want to sort it based on a current value. If the current value is 7, I'd like to sort from 7 up to the highest number, and then from 1 back to the current value. So the array would look like follows:

```
Array(7,8,9,10,1,2,3,4,5,6)

```

Thanks,

Andrew