def METHOD_NAME(metadata_path):
    """
    Sorts and reformats the Hasura metadata
    """
    with open(metadata_path, "r") as f:
        data = yaml.safe_load(f)
    with open(metadata_path, "w") as g:
        yaml.dump(
            prefect_server.utilities.tests.yaml_sorter(data),
            g,
            default_flow_style=False,
        )
    click.secho("Metadata file sorted.", fg="green")