renamed index to nodeIndex
sort adjuncting nodes