Self-ordering of quantum-wire superlattices on V-grooved substrates