sqlalchemy order last name and first name code example Example: sqlalchemy order_by from sqlalchemy import desc someselect.order_by(desc(table1.mycol))