Create nodeComparator