#NEWLINE# @ classmethod #NEWLINE# def sort( cls , dataset , by = [ ] ) : #NEWLINE# #INDENT# if ( ( not by ) or ( by in [ dataset . kdims , dataset . dimensions ( ) ] ) ) : #NEWLINE# #INDENT# return dataset . data #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'Compressed format cannot be sorted, either instantiate in the desired order or use the expanded format.' )