docstr: ivy.Array instance method variant of ivy.argsort. This method simply
  wraps the function, and so the docstring for ivy.argsort also applies
  to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  axis
      axis along which to sort. If set to ``-1``, the function
      must sort along the last axis. Default: ``-1``.
  descending
      sort order. If ``True``, the returned indices sort ``x`` in descending order
      (by value). If ``False``, the returned indices sort ``x`` in ascending order
      (by value). Default: ``False``.
  stable
      sort stability. If ``True``, the returned indices
      must maintain the relative order of ``x`` values
      which compare as equal. If ``False``, the returned
      indices may or may not maintain the relative order
      of ``x`` values which compare as equal (i.e., the
      relative order of ``x`` values which compare as
      equal is implementation-dependent). Default: ``True``.
  out
      optional output array, for writing the result to. It must have the same
      shape as input.
  
  Returns
  -------
  ret
      an array of indices. The returned array must have the same shape as ``x``.
      The returned array must have the default array index data type.
  
  Examples
  --------
  >>> x = ivy.array([1, 5, 2])
  >>> y = x.argsort(axis=-1, descending=True, stable=False)
  >>> print(y)
  ivy.array([1, 2, 0])
  
  >>> x = ivy.array([9.6, 2.7, 5.2])
  >>> y = x.argsort(axis=-1, descending=True, stable=False)
  >>> print(y)
  ivy.array([0, 2, 1])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.argsort",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.argsort","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","axis","axis","along","which","to","sort",".","If","set","to","``","-1","``",",","the","function","must","sort","along","the","last","axis",".","Default",":","``","-1","``",".","descending","sort","order",".","If","``","True","``",",","the","returned","indices","sort","``","x","``","in","descending","order","(","by","value",")",".","If","``","False","``",",","the","returned","indices","sort","``","x","``","in","ascending","order","(","by","value",")",".","Default",":","``","False","``",".","stable","sort","stability",".","If","``","True","``",",","the","returned","indices","must","maintain","the","relative","order","of","``","x","``","values","which","compare","as","equal",".","If","``","False","``",",","the","returned","indices","may","or","may","not","maintain","the","relative","order","of","``","x","``","values","which","compare","as","equal","(","i.e.",",","the","relative","order","of","``","x","``","values","which","compare","as","equal","is","implementation-dependent",")",".","Default",":","``","True","``",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","the","same","shape","as","input",".","Returns","--","--","--","-","ret","an","array","of","indices",".","The","returned","array","must","have","the","same","shape","as","``","x","``",".","The","returned","array","must","have","the","default","array","index","data","type",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","1",",","5",",","2","]",")",">",">",">","y","=","x.argsort","(","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","ivy.array","(","[","1",",","2",",","0","]",")",">",">",">","x","=","ivy.array","(","[","9.6",",","2.7",",","5.2","]",")",">",">",">","y","=","x.argsort","(","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","ivy.array","(","[","0",",","2",",","1","]",")"]
code: def argsort(
      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.argsort. This method simply
      wraps the function, and so the docstring for ivy.argsort also applies
      to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      axis
          axis along which to sort. If set to ``-1``, the function
          must sort along the last axis. Default: ``-1``.
      descending
          sort order. If ``True``, the returned indices sort ``x`` in descending order
          (by value). If ``False``, the returned indices sort ``x`` in ascending order
          (by value). Default: ``False``.
      stable
          sort stability. If ``True``, the returned indices
          must maintain the relative order of ``x`` values
          which compare as equal. If ``False``, the returned
          indices may or may not maintain the relative order
          of ``x`` values which compare as equal (i.e., the
          relative order of ``x`` values which compare as
          equal is implementation-dependent). Default: ``True``.
      out
          optional output array, for writing the result to. It must have the same
          shape as input.
  
      Returns
      -------
      ret
          an array of indices. The returned array must have the same shape as ``x``.
          The returned array must have the default array index data type.
  
      Examples
      --------
      >>> x = ivy.array([1, 5, 2])
      >>> y = x.argsort(axis=-1, descending=True, stable=False)
      >>> print(y)
      ivy.array([1, 2, 0])
  
      >>> x = ivy.array([9.6, 2.7, 5.2])
      >>> y = x.argsort(axis=-1, descending=True, stable=False)
      >>> print(y)
      ivy.array([0, 2, 1])
      """
      return ivy.argsort(
          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 1 for calling the _ArrayWithSorting obj's underlying member method code with example usage: obj.argsort() and returns: ivy