Self-ordering (and superradiance) in cavity quantum-electrodynamics