def __init__(self, *args, **kwargs):
        """
        Convert allowed_sort_fields to an OrderedDict data structure to preserve
        ordering if an ordered data structure (e.g. a tuple of tuples) is provided
        """
        super(SortableListView, self).__init__(*args, **kwargs)
        self._allowed_sort_fields = (OrderedDict(self.allowed_sort_fields)
            if hasattr(self, 'allowed_sort_fields')
            else OrderedDict(((self.default_sort_field,
                             {'default_direction': '-',
                              'verbose_name': 'ID'}),)))
def __init__ ( self , * args , ** kwargs ) : super ( SortableListView , self ) . __init__ ( * args , ** kwargs ) self . _allowed_sort_fields = ( OrderedDict ( self . allowed_sort_fields ) if hasattr ( self , 'allowed_sort_fields' ) else OrderedDict ( ( ( self . default_sort_field , { 'default_direction' : '-' , 'verbose_name' : 'ID' } ) , ) ) )
Convert allowed_sort_fields to an OrderedDict data structure to preserve
        ordering if an ordered data structure (e.g. a tuple of tuples) is provided