Are you sorting only on values? Then you can just use array_multisort... are you trying to sort by a mix of keys and values? That's maybe a little trickier... but usort should still be useable for it.
Otherwise, you could just write your own sorting function... the built in ones aren't always the right route.
Perhaps you could clarify the question a bit for me though... you have it listed above as you'd like the sort to come out in the end?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.