[sqlalchemy] Re: Trying to find a way to sort a query given the name of one of its columns

2023-06-11 Thread Lele Gaifax
Federico Caselli writes: > Also you may not need the col_by_name at all for order_by, since you can > pass the string in order_by directly: > https://docs.sqlalchemy.org/en/20/tutorial/data_select.html#tutorial-order-by-label > This case is still not supported, since doing "query.order_by('firs

[sqlalchemy] Re: Trying to find a way to sort a query given the name of one of its columns

2023-06-11 Thread Federico Caselli
Also you may not need the col_by_name at all for order_by, since you can pass the string in order_by directly: https://docs.sqlalchemy.org/en/20/tutorial/data_select.html#tutorial-order-by-label This case is still not supported, since doing "query.order_by('firstname')" raises "column not found"