tag_labels.sort(lambda x,y:cmp(x['var1'],['var1']))

Well, it should be:
  tag_labels.sort(lambda x,y:cmp(x['var1'],y['var1']))

The second 'y' was missing.

Yes, I figured that out ;) . And yes, Python is very convenient for that. Actually, I know Python and other similar languages have been designed also for this purpose... I just lack experience :/

        Regards, Lyu

Demexp-dev mailing list

Répondre à