$a->{depth} <=> $b->{depth} || $a->{sibling_order} <=> $b->{sibling_order}