I've a array with something like that:
Array ( [0] => XL [1] => M [2] => L [3] => XL [4] => S [5] => XXL)
But i want to sort my array like:
S - M - L - XL - XXL
I know that i can do it with usort() but, i've get some other values like numbers:
Array ( [0] => 14 [1] => 37 [2] => 38 [3] => 39 [4] => 40 [5] => 44 [6] => 36 [7] => 28 )
I mean this is a dynamic array...
I'm using for that asort(); for sorting that values.
Is there any function/way to do that?