Partition the nodes where left nodes are less than right nodes