If I have an array of the following structure
Array (
[user1] => Array
(
[email] => user1@example.com
[days] => Array
(
[2001-05-22] => 11
[2001-05-23] => 13
[2001-05-26] => 15
)
[numprop] => 79
[numagent] => 22
)
[user2] => Array
(
[email] => user2@example.com
[days] => Array
(
[2001-05-22] => 1
[2001-05-24] => 3
[2001-05-27] => 1
)
[numprop] => 1
[numagent] => 1
)
)
How can I sort the array so that the users are sorted by 'numprop' or
'numagent'. I looked at array_muiltisort() but couldn't figure out how to
sort by the 'numprop' or 'numagent' fields.