TheGU / fin-ally

Automatically exported from code.google.com/p/fin-ally
GNU General Public License v3.0
0 stars 0 forks source link

Sort term inversion #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, clicking on a grid column applies a sort term to the database 
content - as described in issue 29. The sort term is basically alphabetically 
ascending, numerically ascending, or ascending by date. Clicking again on the 
column should invert the sort and making it descending alphabetically, 
numerically, or by date.

Also, it would be nice to integrate an image into the header that shows which 
column is being sorted and in which direction.

Original issue reported on code.google.com by Daniel.S...@gmail.com on 11 Oct 2010 at 12:44

GoogleCodeExporter commented 9 years ago
I think this can be done using the .desc() operator - either:

.order_by(desc(schema_term)).all()

or

.order_by(schema_term.desc()).all()

Original comment by Daniel.S...@gmail.com on 11 Oct 2010 at 5:33