> Is there a better way to do this? Your subject is misleading. From what I can tell, you don't want to sort a dictionary. You want to sort a list of dictionaries by a particular key that all of the dictionaries have, true? Why not make a Python script that does what you want and call *that* from ZPT? Cheers, // m -