in reply to Uniquely sorting arrays

I take it you want to permutate your array. Why don't you take a look at Re: Pattern Generator, you might want to adopt that code to your needs.

Hope this helps,

Jeroen
"We are not alone"(FZ)