docstr: ivy.Array instance method variant of ivy.msort. This method simply
  wraps the function, and so the docstring for ivy.msort also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  out
      optional output array, for writing the result to.
  
  Returns
  -------
  ret
      sorted array of the same type and shape as a
  
  Examples
  --------
  >>> a = ivy.asarray([[8, 9, 6],[6, 2, 6]])
  >>> a.msort()
  ivy.array(
      [[6, 2, 6],
      [8, 9, 6]]
      )
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.msort",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.msort","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","out","optional","output","array",",","for","writing","the","result","to",".","Returns","--","--","--","-","ret","sorted","array","of","the","same","type","and","shape","as","a","Examples","--","--","--","--",">",">",">","a","=","ivy.asarray","(","[","[","8",",","9",",","6","]",",","[","6",",","2",",","6","]","]",")",">",">",">","a.msort","(",")","ivy.array","(","[","[","6",",","2",",","6","]",",","[","8",",","9",",","6","]","]",")"]
code: def msort(
      self: ivy.Array,
      /,
      *,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.msort. This method simply
      wraps the function, and so the docstring for ivy.msort also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      out
          optional output array, for writing the result to.
  
      Returns
      -------
      ret
          sorted array of the same type and shape as a
  
      Examples
      --------
      >>> a = ivy.asarray([[8, 9, 6],[6, 2, 6]])
      >>> a.msort()
      ivy.array(
          [[6, 2, 6],
          [8, 9, 6]]
          )
      """
      return ivy.msort(self._data, 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 3 for calling the _ArrayWithSorting obj's underlying member method code with example usage: obj.msort() and returns: ivy