Re: Sorting a query set

2007-02-14 Thread Joseph Heck
Absolutely correct - I was a bit confusing - if the integer is kept in a "text field" - the sorting may not be what you expect. -joe On 2/14/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 2/14/07, Joseph Heck <[EMAIL PROTECTED]> wrote: > > Certainly - if a field is just an integer, use th

Re: Sorting a query set

2007-02-14 Thread James Bennett
On 2/14/07, Joseph Heck <[EMAIL PROTECTED]> wrote: > Certainly - if a field is just an integer, use the .order_by('fieldname') or > .order_by('-fieldname') and that should do the trick nicely. Actually, you should be able to order by any field, not just an integer. -- "Bureaucrat Conrad, you ar

Re: Sorting a query set

2007-02-14 Thread Joseph Heck
Certainly - if a field is just an integer, use the .order_by('fieldname') or .order_by('-fieldname') and that should do the trick nicely. -joe On 2/7/07, MerMer <[EMAIL PROTECTED]> wrote: > > > > > Is it possible to sort a query set based on an integer in one of the > fields. > > MerMer > > > > >

Sorting a query set

2007-02-09 Thread MerMer
Is it possible to sort a query set based on an integer in one of the fields. MerMer --~--~-~--~~~---~--~~ 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@googlegr