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
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
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
>
>
> >
>
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
4 matches
Mail list logo