Tree utility: sorting added.