ksort

Sorting an array by a certain key

I have the following array: Array ( [Places] => Array ( [public] => 0 [entities] => Array ( ... ) ) [Issues] => Array ( [public] => 1 [entities] => Array ( ... ...

Sort multi-dimensional array on specific key

I have an array: Array ( [0] => stdClass Object ( [user_id] => 1 [ID] => 1 [user_login] => admin [display_name] => admin [user_email] => [email protected] [meta_value] => a:1:{s:13:"administrator";s:1:"1";} ) [1] => stdClass Object ( [user_id] => 4 [ID] => 4 [user_login] => ungtinflytande [display_name] => ungtinflytande [user_em...