I'm trying to use PHP's ksort to sort this array:
Array(
[district_name] => District name
[email] => [email protected]
[name] => Name of item
[number] => 191
[phone] => +41234568789
[{attr}id] => 2
[questions] => Array(...)
)
But the key that contains {attr}...
does not get sorted, it stays at the same place while the other keys gets sorted. What is the best method to sort this array?
{attr}id
to be ? – hsz Apr 11 '11 at 9:25