parameters: (a, axis= -1, kind='quicksort', order=None, endwith=True, fill_value=None)
return_statement: return a[indx]
docstring: Function version of the eponymous method.
docstring_summary: Function version of the eponymous method.
docstring_tokens: Function version of the eponymous method .
function: def sort(a, axis= -1, kind='quicksort', order=None, endwith=True, fill_value=None):
      "Function version of the eponymous method."
      a = narray(a, copy=True, subok=True)
      if axis is None:
          a = a.flatten()
          axis = 0
      if fill_value is None:
          if endwith:
              filler = minimum_fill_value(a)
          else:
              filler = maximum_fill_value(a)
      else:
          filler = fill_value
  #    return
      indx = np.indices(a.shape).tolist()
      indx[axis] = filled(a, filler).argsort(axis=axis, kind=kind, order=order)
      return a[indx]
function_tokens: def sort ( a , axis = - 1 , kind = 'quicksort' , order = None , endwith = True , fill_value = None ) : a = narray ( a , copy = True , subok = True ) if axis is None : a = a . flatten ( ) axis = 0 if fill_value is None : if endwith : filler = minimum_fill_value ( a ) else : filler = maximum_fill_value ( a ) else : filler = fill_value #    return indx = np . indices ( a . shape ) . tolist ( ) indx [ axis ] = filled ( a , filler ) . argsort ( axis = axis , kind = kind , order = order ) return a [ indx ]