thierry wrote: > Hi all, > > The order_by method makes possible to sort objects relatively to a > specified field. But how can I sort a QuerySet relatively to a Python > property ?
order_by happens in the database. If you want to sort with python you can use sorted(): http://wiki.python.org/moin/HowTo/Sorting/ Your QuerySet gets a list during sorting. This means all items need to fit into the memory. -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.