#NEWLINE# def __init__( self , request , defaultfield = None , defaultdirection = DEFAULT ) : #NEWLINE# #INDENT# '\n        Accepts request, looks for GET keys "sortfield" and "sortdirection".\n\n        A "field" can actually be multiple field names concatenated with\n        commas, in which case all of those fields will be sorted on, in\n        descending priority order.\n\n        ' #NEWLINE# self . url_path = request . get_full_path ( ) #NEWLINE# self . field = request . GET . get ( 'sortfield' , defaultfield ) #NEWLINE# self . direction = request . GET . get ( 'sortdirection' , defaultdirection ) #NEWLINE# if ( defaultfield . field is None ) : #NEWLINE# #INDENT# self . field = 'created_on' #NEWLINE# self . direction = 'desc'