def __getitem__(self, index):
        if isinstance(index, six.string_types):
            for order_by in self:
                if order_by == index or order_by.bare == index:
                    return order_by
            raise KeyError
        return super(OrderByTuple, self).__getitem__(index)
Allows an `.OrderBy` object to be extracted via named or integer
dataset/ETHPy150Open bradleyayers/django-tables2/django_tables2/utils.py/OrderByTuple.__getitem__