Self-organization of atoms along a nanophotonic waveguide.