I have searched this site, looking for answers, but I cannot make it work. So finally I post this question knowing that there are a lot of possible duplicates. But when I try to use the answers, I get error messages of stdClass
I have an array with these values:
Array
(
[1251] => stdClass Object
(
[vid] => 1253
[uid] => 20
[body] => Array
(
)
[field_datum] => Array
(
[und] => Array
(
[0] => Array
(
[value] => 2016-09-17T11:30:00
[timezone] => Europe/Brussels
[timezone_db] => UTC
[date_type] => date
)
)
)
)
I would have to sort this array with the value of the field_datum [field_datum][und][0][value]
I have tried this sollution: Sorting by key in a multidimensional array with php
But I get this as an error Fatal error: Cannot use object of type stdClass as array