I had to check 10! just to see how bad this could be. At 10 it's 3,628,800. Depending on how beefy the system is and how costly the operation is, pure brute force but simple might be good enough.
I'm not sure what brute-forcing means in this context. Do you mean hard-coding every way to order 10 unique elements?