The Swiss Federal Office for Statistics makes code numbers with up to four digits , which are given in the order chosen with the official order of the cantons , districts , and municipalities in Switzerland . The Swiss Federal Office for Statistics generates code numbers with up to four digits , which are sequentially assigned in accordance with the official order of the cantons , districts , and municipalities .