On 11/8/06 1:59 AM, Pythoni wrote: > words.get_list(order_by=('Word')) In Python, a single element tuple looks like ``("Word",)`` -- note the trailing comma. Without it, you're doing this::
words.get_list(order_by="Word")) And since strings are iterable, Django thinks you want to order by ``W``, then ``o``, then... So either use the trailing comma, or just use a list:: words.get_list(order_by=["Word"]) More here: http://docs.python.org/tut/node7.html#SECTION007300000000000000000 Jacob --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---