#NEWLINE# def sort( self , by = [ ] ) : #NEWLINE# #INDENT# if ( not isinstance ( by , list ) ) : #NEWLINE# #INDENT# by = [ by ] #NEWLINE# #UNINDENT# if ( not by ) : #NEWLINE# #INDENT# by = range ( self . ndims ) #NEWLINE# #UNINDENT# indexes = [ self . get_dimension_index ( by ) for d in by ] #NEWLINE# return self . clone ( dimension_sort ( self . data , self . kdims , self . vdims , False , indexes , self . _cached_index_values ) )