#NEWLINE# def update( self , field ) : #NEWLINE# #INDENT# if field . startswith ( '-' ) : #NEWLINE# #INDENT# order = 'desc' #NEWLINE# field = self [ 1 : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if field . startswith ( '+' ) : #NEWLINE# #INDENT# order = 'asc' #NEWLINE# field = field [ 1 : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# order = 'asc' #NEWLINE# #UNINDENT# #UNINDENT# self . fields . append ( [ order , field ] )