Assume Post is SQLAlchemy model, if I have SQLAlchemy queries like:
query1 = Post.query.filter_by(category_id=2)
query2 = Post.query.filter_by(category_id=2).order_by(Post.id.desc())
query3 = Post.query.filter_by(category_id=2).order_by(Post.foobar)
How can I programmatically determine which column (e.g., None, Post.id, and Post.foobar) the queries are ordered by?