Is there a way to order the rows returned by a SQLAlchemy query alphabetically in the actual query, or is the only way to order alphabetically is to sort the list of rows that the query returns.
You can add an order_by
clause:
query = query.order_by(MyTable.column_name)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With