Added ability to sort a calculation tree, given that the items have a <=> defined.