added support for child nodes and sorting by column header