Tom Smith wrote:
>
> On 10 Oct 2006, at 15:08, Tom Smith wrote:
>
>> Sorry for what is probably a simple python question, but if I have a
>> list of Products and I have searched for 100 of them ordered by x...
>>
>> then how do I then sort the QuerySet returned by title?
>>
>> I can't do an .. object_list = products.items().sort('title')
>>
>> because I have already done a [:100] on the results...
>
> ... answering my own question but this works... probably will be slow
> for a large collection of objects but it's useful for making a
> tagcloud (unfinished)..
In the long run, it may be better to perform another query :)
--
Marko
ICQ: 5990814
I'm not under the alkafluence of inkahol
that some thinkle peep I am.
It's just the drunker I sit here the longer I get.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---