no need to sort rows a seconde time, removing children attribute from
leaf nodes