code: def sort_authors(
      authors: list[dict[str, str]]
  ) -> list[dict[str, str]]:
      """Sort authors by given name."""
      print(" Sorting authors by given name")
      authors.sort(key=lambda x: x["given-names"])
      return authors
  
file_path: nilearn/maint_tools/citation_cff_maint.py
imports: from __future__ import annotations
  from pathlib import Path
  from typing import Any
  import ruamel.yaml
label_desc: Use image node_id 12 for calling a global function with example usage: sort_authors(authors) and returns: authors