code: def sort(
      x: Array,
      /,
      *,
      axis: int = -1,
      descending: bool = False,
      stable: bool = True,
  ) -> Array:
      """
      Array API compatible wrapper for :py:func:`np.sort <numpy.sort>`.
  
      See its docstring for more information.
      """
      # Note: Unlike in NumPy we only support kind={None, 'stable'}, but the standard
      # does *not* require we need to support unstable sort.
      kind = None
      res = np.sort(x._array, axis=axis, kind=kind)
      if descending:
          res = np.flip(res, axis=axis)
      return Array._new(res)
  
imports: from __future__ import annotations
  from ._array_object import Array
  import cupy
label_desc: Use image node_id 2 for calling a global function with example usage: sort() and returns: Array