docstr: ivy.Container static 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
  ----------
  x
      input array or container. Should have a numeric data type.
  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``.
  key_chains
      The key-chains to apply or not apply the method to. Default is ``None``.
  to_apply
      If True, the method will be applied to key_chains, otherwise key_chains
      will be skipped. Default is ``True``.
  prune_unapplied
      Whether to prune key_chains for which the function was not applied.
      Default is ``False``.
  map_sequences
      Whether to also map method to sequences (lists, tuples).
      Default is ``False``.
  out
      optional output container, for writing the result to. It must have a shape
      that the inputs broadcast to.
  
  Returns
  -------
  ret
      a container containing the index values of sorted
      array. The returned array must have a
      data type determined by :ref:`type-promotion`.
  
  Examples
  --------
  With :class:`ivy.Container` input:
  
  >>> x = ivy.Container(a=ivy.array([7, 2, 1]),
  ...                   b=ivy.array([3, 2]))
  >>> y = ivy.Container.static_argsort(x, axis=-1, descending=True, stable=False)
  >>> print(y)
  {
      a: ivy.array([0, 1, 2]),
      b: ivy.array([0, 1])
  }
  
  >>> x = ivy.Container(a=ivy.array([7, 2, 1]),
  ...                   b=ivy.array([[3, 2], [7, 0.2]]))
  >>> y = ivy.Container.static_argsort(x, axis=-1, descending=True, stable=False)
  >>> print(y)
  {
      a: ivy.array([0, 1, 2]),
      b: ivy.array([[0, 1]],[0, 1]])
  }
  
  With :class:`ivy.Container` input:
  
  >>> x = ivy.Container(a=ivy.array([2, 5, 1]),
  ...                   b=ivy.array([1, 5], [.2,.1]))
  >>> y = ivy.Container.static_argsort(x,axis=-1, descending=True, stable=False)
  >>> print(y)
  {
      a: ivy.array([2, 0, 1]),
      b: ivy.array([[1, 0],[0,1]])
  }
  
  >>> x = ivy.Container(a=ivy.native_array([2, 5, 1]),
  ...                   b=ivy.array([1, 5], [.2,.1]))
  >>> y = ivy.Container.static_argsort(x, axis=-1, descending=True, stable=False)
  >>> print(y)
  {
      a: ivy.array([2, 0, 1]),
      b: ivy.array([[1, 0],[0,1]])
  }
docstr_tok: ["ivy.Container","static","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","--","--","--","--","--","x","input","array","or","container",".","Should","have","a","numeric","data","type",".","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","``",".","key_chains","The","key-chains","to","apply","or","not","apply","the","method","to",".","Default","is","``","None","``",".","to_apply","If","True",",","the","method","will","be","applied","to","key_chains",",","otherwise","key_chains","will","be","skipped",".","Default","is","``","True","``",".","prune_unapplied","Whether","to","prune","key_chains","for","which","the","function","was","not","applied",".","Default","is","``","False","``",".","map_sequences","Whether","to","also","map","method","to","sequences","(","lists",",","tuples",")",".","Default","is","``","False","``",".","out","optional","output","container",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","a","container","containing","the","index","values","of","sorted","array",".","The","returned","array","must","have","a","data","type","determined","by",":","ref",":","`","type-promotion","`",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Container","`","input",":",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","7",",","2",",","1","]",")",",","...","b=ivy.array","(","[","3",",","2","]",")",")",">",">",">","y","=","ivy.Container.static_argsort","(","x",",","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","0",",","1",",","2","]",")",",","b",":","ivy.array","(","[","0",",","1","]",")","}",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","7",",","2",",","1","]",")",",","...","b=ivy.array","(","[","[","3",",","2","]",",","[","7",",","0.2","]","]",")",")",">",">",">","y","=","ivy.Container.static_argsort","(","x",",","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","0",",","1",",","2","]",")",",","b",":","ivy.array","(","[","[","0",",","1","]","]",",","[","0",",","1","]","]",")","}","With",":","class",":","`","ivy.Container","`","input",":",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","2",",","5",",","1","]",")",",","...","b=ivy.array","(","[","1",",","5","]",",","[",".2",",",".1","]",")",")",">",">",">","y","=","ivy.Container.static_argsort","(","x",",","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","2",",","0",",","1","]",")",",","b",":","ivy.array","(","[","[","1",",","0","]",",","[","0,1","]","]",")","}",">",">",">","x","=","ivy.Container","(","a=ivy.native_array","(","[","2",",","5",",","1","]",")",",","...","b=ivy.array","(","[","1",",","5","]",",","[",".2",",",".1","]",")",")",">",">",">","y","=","ivy.Container.static_argsort","(","x",",","axis=-1",",","descending=True",",","stable=False",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","2",",","0",",","1","]",")",",","b",":","ivy.array","(","[","[","1",",","0","]",",","[","0,1","]","]",")","}"]
code: def _static_argsort(
      x: Union[ivy.Array, ivy.NativeArray, ivy.Container],
      /,
      *,
      axis: Union[int, ivy.Container] = -1,
      descending: Union[bool, ivy.Container] = False,
      stable: Union[bool, ivy.Container] = True,
      key_chains: Optional[
          Union[List[str], Dict[str, str], ivy.Container]
      ] = None,
      to_apply: Union[bool, ivy.Container] = True,
      prune_unapplied: Union[bool, ivy.Container] = False,
      map_sequences: Union[bool, ivy.Container] = False,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container static 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
      ----------
      x
          input array or container. Should have a numeric data type.
      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``.
      key_chains
          The key-chains to apply or not apply the method to. Default is ``None``.
      to_apply
          If True, the method will be applied to key_chains, otherwise key_chains
          will be skipped. Default is ``True``.
      prune_unapplied
          Whether to prune key_chains for which the function was not applied.
          Default is ``False``.
      map_sequences
          Whether to also map method to sequences (lists, tuples).
          Default is ``False``.
      out
          optional output container, for writing the result to. It must have a shape
          that the inputs broadcast to.
  
      Returns
      -------
      ret
          a container containing the index values of sorted
          array. The returned array must have a
          data type determined by :ref:`type-promotion`.
  
      Examples
      --------
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([7, 2, 1]),
      ...                   b=ivy.array([3, 2]))
      >>> y = ivy.Container.static_argsort(x, axis=-1, descending=True, stable=False)
      >>> print(y)
      {
          a: ivy.array([0, 1, 2]),
          b: ivy.array([0, 1])
      }
  
      >>> x = ivy.Container(a=ivy.array([7, 2, 1]),
      ...                   b=ivy.array([[3, 2], [7, 0.2]]))
      >>> y = ivy.Container.static_argsort(x, axis=-1, descending=True, stable=False)
      >>> print(y)
      {
          a: ivy.array([0, 1, 2]),
          b: ivy.array([[0, 1]],[0, 1]])
      }
  
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([2, 5, 1]),
      ...                   b=ivy.array([1, 5], [.2,.1]))
      >>> y = ivy.Container.static_argsort(x,axis=-1, descending=True, stable=False)
      >>> print(y)
      {
          a: ivy.array([2, 0, 1]),
          b: ivy.array([[1, 0],[0,1]])
      }
  
      >>> x = ivy.Container(a=ivy.native_array([2, 5, 1]),
      ...                   b=ivy.array([1, 5], [.2,.1]))
      >>> y = ivy.Container.static_argsort(x, axis=-1, descending=True, stable=False)
      >>> print(y)
      {
          a: ivy.array([2, 0, 1]),
          b: ivy.array([[1, 0],[0,1]])
      }
      """
      return ContainerBase.cont_multi_map_in_function(
          "argsort",
          x,
          axis=axis,
          descending=descending,
          stable=stable,
          key_chains=key_chains,
          to_apply=to_apply,
          prune_unapplied=prune_unapplied,
          map_sequences=map_sequences,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/container/sorting.py
imports: from typing import Optional, List, Union, Dict, Literal
  from ivy.data_classes.container.base import ContainerBase
  import ivy
label_desc: Use image node_id 1 for calling the _ContainerWithSorting obj's underlying member method code with example usage: obj._static_argsort() and returns: ContainerBase