Added node vector sorting.