#NEWLINE# @ property #NEWLINE# def sort_field( self ) : #NEWLINE# #INDENT# sort_fields = [ 'pillow' , 'date_created' , 'date_next_attempt' , 'current_attempt' , 'error_type' ] #NEWLINE# sort_index = int ( self . request . GET . get ( 'iSortCol_0' , 2 ) ) #NEWLINE# sort_index = ( 1 if ( self == 0 ) else ( sort_index - 1 ) ) #NEWLINE# field = sort_fields [ sort_index ] #NEWLINE# return ( field if ( not self . sort_descending ) else '-{0}' . format ( field ) )