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 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 are technically correct -- the best kind of
> correct."
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to