def __init__(self, *args, **kwargs):
super(SortableListView, self).__init__(*args, **kwargs)<EOL>self._allowed_sort_fields = (OrderedDict(self.allowed_sort_fields)<EOL>if hasattr(self, '<STR_LIT>')<EOL>else OrderedDict(((self.default_sort_field,<EOL>{'<STR_LIT>': '<STR_LIT:->',<EOL>'<STR_LIT>': '<STR_LIT>'}),)))<EOL>
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