code: func sortedEnvironment(environment map[string]string) []*ecs.KeyValuePair {
  	e := ecsEnv{}
  	for k, v := range environment {
  		e = append(e, &ecs.KeyValuePair{
  			Name:  aws.String(k),
  			Value: aws.String(v),
  		})
  	}
  	sort.Sort(e)
  	return e
  }
docs: // sortedEnvironment takes a map[string]string and returns a sorted slice of
  // ecs.KeyValuePair.