I am looking a way to sort a collection into every unique combination. The count of the collection will not alway be the same. For example... Count is 3
1 2 3 - Do something
1 3 2 - Do something
2 1 3 - Do something
2 3 1 - Do something
3 1 2 - Do something
3 2 1 - Do something
Thanks in advance
1 2 3 - Do something
1 3 2 - Do something
2 1 3 - Do something
2 3 1 - Do something
3 1 2 - Do something
3 2 1 - Do something
Thanks in advance