SQLAlchemy `order_by` gotcha
Today I encountered a surprising SQLAlchemy gotcha. In short, if you have a Query
object and call
its order_by
method on the same column more than once, the first ORDER BY
is not superseded.
Here's an illustrative example. I'll include the boilerplate code (schema, etc.) at the end of the …