[web2py] Re: Custom comparison function with orderby in select()

2015-05-05 Thread Ian W. Scott
A belated thanks, Anthony. I had forgotten about the rows.sort() method. On Thursday, April 30, 2015 at 5:13:23 PM UTC-4, Anthony wrote: > > The sorting via orderby is handled by the database, so you can't use > Python code for that, as it must be executed by the database. However, the > Rows ob

[web2py] Re: Custom comparison function with orderby in select()

2015-04-30 Thread Anthony
The sorting via orderby is handled by the database, so you can't use Python code for that, as it must be executed by the database. However, the Rows object has a .sort() method, which does the sorting in Python after the records are returned by the database. See http://web2py.com/books/default/