Ah, I see, .sort has the same problem as .find. I think we should just try to fix .sort.
Anthony On Tuesday, January 7, 2014 5:53:15 PM UTC-5, Joe Barnhart wrote: > > It's actually a little deeper problem. I see that Rows.sort() has the > effect of stripping the table key from the resulting Row objects. > > If I try the obvious fix, to use the built-in "sorted" on self.records > instead of self, then the next problem surfaces -- the supplied sort key > must include the table and the field key, and they must both be supplied to > the sort. Which would break all manner of existing programs. > > I love the concept of "compact" vs non-compact, but the implementation of > stripping the table keys from the Row objects has left quite a mess! > > -- Joe > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.