I have an SimpleXMLElement Object:
SimpleXMLElement Object (
[@attributes] => Array (
[id] => 1234
[color] => red
)
[one] => SimpleXMLElement Object (
[@attributes] => Array (
[position] => 2
[close] => false
)
)
[two] => SimpleXMLElement Object (
[@attributes] => Array (
[position] => 0
[close] => false
)
)
[three] => SimpleXMLElement Object (
[@attributes] => Array (
[position] => 0
[close] => true
)
)
)
Now I want to sort the Childs ("one", "two" "three") by the attribute "position". How can I solve this problem?
Thanks!