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
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev

Répondre à