I have an array similar to the one below
I need to sort this array into a certain order eg. How can I custom order by the name property into this order C2, C1, C3 for example?
array(11) {
[0]=>
object(stdClass)#1569 (8) {
["name"]=>
string(36) "C1"
}
[1]=>
object(stdClass)#1589 (8) {
["name"]=>
string(36) "C2"
}
[2]=>
object(stdClass)#1599 (8) {
["name"]=>
string(36) "C3"
}
}