def order_by(self, spec):
        """Order by column (ascending) or -column (descending)."""
        if not ORDER_PATTERN.match(spec):
            raise ValueError(spec % 'Invalid order by value: %r')
        if spec.startswith('-'):
            dir = 'DESC'
            field = spec[1:]
        else:
            dir = 'ASC'
            field = spec
        clone = self._clone()
        clone.base_query['order_by'].append('%s %s' %
                                            (clone._resolve_alias(field), dir))
        return clone
dataset/ETHPy150Open mozilla/addons-server/src/olympia/editors/sql_model.py/RawSQLManager.order_by/swapped operands of `%`