def get_order_dir(field, default='ASC'):
    dirn = ORDER_DIR[default]
    if field[0] == '-':
        return field[1:], dirn[1]
    return field, dirn[0]
Compare this ColumnElement to another.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/sql/query.py/get_order_dir--crossover with--dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/sql/elements.py/ColumnElement.compare