I have 4 arrays that I sort with:
The first array has empty elements and I want to put them at the end of the list. Multisort puts them at the beginning, is there a simple way to do that?
Can you post some example data which demonstrates your point?
Before and after samples would be nice…
The first container array in the result is the one that has to be sorted.
The second one is the sorted one.
But, as you can see, in $arrays, there’s the empty value that I want last with the other values associated with it (“two” and “option2”);