def _ToYAMLDefault(appinfo_config):
  """Converts an app config to default (alphabetical by key) YAML string.

  Args:
    appinfo_config: appinfo.AppInfoExternal object. Configuration object
      for either a module or app.yaml.

  Returns:
    String containing YAML for the app config object.
  """
  return appinfo_config.ToYAML()