Hi Im trying to achieve a ascending sort order for particular columns in a sqlite database using sql alchemy, the issue im having is that the column I want to sort on has upper and lower case data and thus the sort order doesn't work correctly.
I then found out about func.lower and tried to incorporate this into the query but it either errors or just doesn't work, can somebody give me a working example of how to do a case insensitive ascending sort order using sql alchemy.
below is what I have so far (throws error):-
session.query(ResultsDBHistory).order_by(func.lower(asc(history_sort_order_column))).all()
python 2.6.6 sql alchemy 0.7.10