demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Demexp-dev] Sorting tag/question lists


From: Lyu Abe
Subject: Re: [Demexp-dev] Sorting tag/question lists
Date: Mon, 29 Oct 2007 18:01:01 +0900
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Hi David,

thanks for your reply.

2007/10/29, Lyu Abe <address@hidden>:
I'm currently using this code to sort the question or tags lists...

You want to sort tag list by label name, right?

No, I just want to order the questions tags by their 'q_id' (to match the question list sorting). But the .sort(lambda...) does not seem to work, because the list is a list of dictionnaries (if I got it right):

tag_labels=[{'var1':8,'var2':'hello'},{'var1':2,'var2':'avec du lait'}]

Any straightforward solution to this?

        Lyu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]