Sorts the resource tree
changeChildContext( $node, $context ) :
getNodesFormatted( $ar_nodes, $cur_level, $parent = 0 ) :