In reference to the following: closed https://github.com/kelseyhightower/confd/issues/385 open https://github.com/kelseyhightower/confd/issues/190 Two methods that would help tremendously: Reverse sort Sort map keys and/or values by length