code: def sort(
      table: "pyarrow.Table", sort_key: "SortKey"
  ) -> "pyarrow.Table":
      import pyarrow.compute as pac
  
      indices = pac.sort_indices(
          table, sort_keys=sort_key.to_arrow_sort_args()
      )
      return take_table(table, indices)
  
file_path: ray/python/ray/data/_internal/arrow_ops/transform_pyarrow.py
imports: from typing import TYPE_CHECKING, List, Union
label_desc: Use image node_id 1 for calling a global function with example usage: sort(table, sort_key) and returns: take_table