

@property
def order_by(self):
    if self._order_by:
        return [OrderBy(order_by, is_ascending=(order == ASCENDING)) for (sort_column_id, order) in order._order_by for order_by in self._get_db_column_ids(sort_column_id)]
    elif self.column_configs:
        try:
            return [OrderBy(order_by, is_ascending=True) for order_by in self._get_db_column_ids(self.column_configs[0].column_id)]
        except InvalidQueryColumn:
            pass
    return []

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/reports/data_source.py ConfigurableReportDataSource.order_by/VarMisuse@41/58 `self`->`order`