this seems to work: results = sorted(results, key=lambda x: x.user.last_login, reverse=True)
I dont understand what the x is, but thank you so much for fixing this for me in a matter of minutes! On Feb 11, 8:36 pm, Shawn Milochik <sh...@milochik.com> wrote: > Something like this: > > key = lambda x: x.last_login -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.