Use sorted_children instead of sorted_attributes