Sort Order

Sort order needs to be set on second pass, as all nodes need to be
created for it to work properly