docstr: ivy.Container 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.Container(a=ivy.array([5, 9, 0.2]),
  ...                   b=ivy.array([8, 1]))
  >>> y = x.sort()
  >>> print(y)
  {
      a: ivy.array([0.2, 5., 9.]),
      b: ivy.array([1, 8])
  }
  
  >>> x = ivy.Container(a=ivy.array([5, 9, 0.2]),
  ...                   b=ivy.array([[8, 1], [5, 0.8]]))
  >>> y = x.sort()
  >>> print(y)
  {
      a: ivy.array([0.2, 5., 9.]),
      b: ivy.array([[1., 8.], [0.8, 5.]])
  }
  
  >>> x = ivy.Container(a=ivy.array([8, 0.5, 6]),
  ...                   b=ivy.array([[9, 0.7], [0.4, 0]]))
  >>> y = ivy.sort(x)
  >>> print(y)
  {
      a: ivy.array([0.5, 6., 8.]),
      b: ivy.array([[0.7, 9.],[0., 0.4]])
  }
  
  >>> x = ivy.Container(a=ivy.native_array([8, 0.5, 6]),
  ...                   b=ivy.array([[9, 0.7], [0.4, 0]]))
  >>> y = ivy.sort(x)
  >>> print(y)
  {
      a: ivy.array([0.5, 6., 8.]),
      b: ivy.array([[0.7, 9.],[0., 0.4]])
  }
docstr_tok: ["ivy.Container","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.Container","(","a=ivy.array","(","[","5",",","9",",","0.2","]",")",",","...","b=ivy.array","(","[","8",",","1","]",")",")",">",">",">","y","=","x.sort","(",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","0.2",",","5.",",","9",".","]",")",",","b",":","ivy.array","(","[","1",",","8","]",")","}",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","5",",","9",",","0.2","]",")",",","...","b=ivy.array","(","[","[","8",",","1","]",",","[","5",",","0.8","]","]",")",")",">",">",">","y","=","x.sort","(",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","0.2",",","5.",",","9",".","]",")",",","b",":","ivy.array","(","[","[","1.",",","8",".","]",",","[","0.8",",","5",".","]","]",")","}",">",">",">","x","=","ivy.Container","(","a=ivy.array","(","[","8",",","0.5",",","6","]",")",",","...","b=ivy.array","(","[","[","9",",","0.7","]",",","[","0.4",",","0","]","]",")",")",">",">",">","y","=","ivy.sort","(","x",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","0.5",",","6.",",","8",".","]",")",",","b",":","ivy.array","(","[","[","0.7",",","9",".","]",",","[","0.",",","0.4","]","]",")","}",">",">",">","x","=","ivy.Container","(","a=ivy.native_array","(","[","8",",","0.5",",","6","]",")",",","...","b=ivy.array","(","[","[","9",",","0.7","]",",","[","0.4",",","0","]","]",")",")",">",">",">","y","=","ivy.sort","(","x",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","0.5",",","6.",",","8",".","]",")",",","b",":","ivy.array","(","[","[","0.7",",","9",".","]",",","[","0.",",","0.4","]","]",")","}"]
code: def sort(
      self: 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 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.Container(a=ivy.array([5, 9, 0.2]),
      ...                   b=ivy.array([8, 1]))
      >>> y = x.sort()
      >>> print(y)
      {
          a: ivy.array([0.2, 5., 9.]),
          b: ivy.array([1, 8])
      }
  
      >>> x = ivy.Container(a=ivy.array([5, 9, 0.2]),
      ...                   b=ivy.array([[8, 1], [5, 0.8]]))
      >>> y = x.sort()
      >>> print(y)
      {
          a: ivy.array([0.2, 5., 9.]),
          b: ivy.array([[1., 8.], [0.8, 5.]])
      }
  
      >>> x = ivy.Container(a=ivy.array([8, 0.5, 6]),
      ...                   b=ivy.array([[9, 0.7], [0.4, 0]]))
      >>> y = ivy.sort(x)
      >>> print(y)
      {
          a: ivy.array([0.5, 6., 8.]),
          b: ivy.array([[0.7, 9.],[0., 0.4]])
      }
  
      >>> x = ivy.Container(a=ivy.native_array([8, 0.5, 6]),
      ...                   b=ivy.array([[9, 0.7], [0.4, 0]]))
      >>> y = ivy.sort(x)
      >>> print(y)
      {
          a: ivy.array([0.5, 6., 8.]),
          b: ivy.array([[0.7, 9.],[0., 0.4]])
      }
      """
      return self._static_sort(
          self,
          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 4 for calling the _ContainerWithSorting obj's underlying member method code with example usage: obj.sort() and returns: self