docstr: ivy.Array instance method variant of ivy.sort. This method simply
  wraps the function, and so the docstring for ivy.sort also applies to
  this method with minimal changes.
  
  Examples
  --------
  >>> x = ivy.array([7, 8, 6])
  >>> y = x.sort(axis=-1, descending=True, stable=False)
  >>> print(y)
  ivy.array([8, 7, 6])
  
  >>> x = ivy.array([8.5, 8.2, 7.6])
  >>> y = x.sort(axis=-1, descending=True, stable=False)
  >>> print(y)
  ivy.array([8.5, 8.2, 7.6])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.sort",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.sort","also","applies","to","this","method","with","minimal","changes",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","7",",","8",",","6","]",")",">",">",">","y","=","x.sort","(","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","ivy.array","(","[","8",",","7",",","6","]",")",">",">",">","x","=","ivy.array","(","[","8.5",",","8.2",",","7.6","]",")",">",">",">","y","=","x.sort","(","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","ivy.array","(","[","8.5",",","8.2",",","7.6","]",")"]
code: def sort(
      self: ivy.Array,
      /,
      *,
      axis: int = -1,
      descending: bool = False,
      stable: bool = True,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.sort. This method simply
      wraps the function, and so the docstring for ivy.sort also applies to
      this method with minimal changes.
  
      Examples
      --------
      >>> x = ivy.array([7, 8, 6])
      >>> y = x.sort(axis=-1, descending=True, stable=False)
      >>> print(y)
      ivy.array([8, 7, 6])
  
      >>> x = ivy.array([8.5, 8.2, 7.6])
      >>> y = x.sort(axis=-1, descending=True, stable=False)
      >>> print(y)
      ivy.array([8.5, 8.2, 7.6])
      """
      return ivy.sort(
          self._data,
          axis=axis,
          descending=descending,
          stable=stable,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/array/sorting.py
imports: import abc
  from typing import Optional, Union, Literal, List
  import ivy
label_desc: Use image node_id 2 for calling the _ArrayWithSorting obj's underlying member method code with example usage: obj.sort() and returns: ivy