code: func KVListFromMap(m map[string]string) KVList {
  	keys := make([]string, 0, len(m))
  	for k := range m {
  		keys = append(keys, k)
  	}
  	sort.Strings(keys)
  	kvList := make([]KV, len(keys))
  	for i, k := range keys {
  		kvList[i] = KV{
  			Key:   k,
  			Value: m[k],
  		}
  	}
  	return kvList
  }
docs: // KVListFromMap converts a map to KVList.