flask sqlalchemy order by output of function flasl code example
Example: sqlalchemy order by descending
from sqlalchemy import desc
someselect.order_by(desc(table1.mycol))
from sqlalchemy import desc
someselect.order_by(desc(table1.mycol))