Your problem is that the <=> operator in the sort is a numeric comparison, and with the strings not beginning with a number they evaluate to a 0.
Simple solution: Replace the <=> with a cmp
In reply to Re: Sorting multi-dimensional arrays
by Molt
in thread Sorting multi-dimensional arrays
by cryptic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |