On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> > Score.objects.order_by('-baseball')
> >
> > will return all the objects in reverse order.
>
> Does this only grab the baseball scores? Or grabs all of them and THEN
> sorts them by score?
> (Just for future reference.)This will grab _all_ score objects, and sort them by baseball score. If there isn't a baseball score, then 'baseball' will have a value of None, which is still a sortable value. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

