Ensuring order for neihbors()