def order_queryset(self, queryset):
        """Apply an order operation on a provided queryset"""
        order_by = self.request.GET.get(self.order_by_key)
        sort = self.request.GET.get(self.sort_key, self.default_sort)

        # Restrict options to those that are valid
        if ('asc', 'desc') not in sort:
            sort = self.default_sort

        if sort == 'asc':
            sort = ''
        else:
            sort = '-'

        if order_by not in self.valid_order_by:
            order_by = self.default_order_by

        queryset = queryset.order_by('%s%s' % (sort, order_by))
        return queryset
dataset/ETHPy150Open ofa/connect/open_connect/connect_core/utils/mixins.py/SortableListMixin.order_queryset/swapped operands of `not in`