#NEWLINE# def sort( self , sort_columns , inplace = True ) : #NEWLINE# #INDENT# ' sort counts table by columns' #NEWLINE# def sort_table( counts ) : #NEWLINE# #INDENT# counts . table = counts . table . sort ( columns = sort_columns ) #NEWLINE# #UNINDENT# if inplace : #NEWLINE# #INDENT# sort_table ( self ) #NEWLINE# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tmp_counts = self . clone ( ) #NEWLINE# sort_table ( inplace ) #NEWLINE# return tmp_counts