Ivan Sagalaev wrote:
> EricHsu wrote:
>
> >is it possible to make sure that
> >categorys.get_list(id__in=category_id_list) returns category object
> >list in the same order as category_id_list?
> >
> Nope. The order of a result of a query without 'ORDER BY' is undefined.
> But as soon as you have python list in memory you can sort it quite fast.

big thanks to Ivan :)

Yes, I kept the order by python code now.

- Eric


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

Reply via email to