# HG changeset patch # User paulb # Date 1126305677 0 # Node ID f600ff30cfe102f5111914f45b114d13fb7d6f5a # Parent 183c7c2d51a041a6cc2bf77c921f06a2e43c9291 [project @ 2005-09-09 22:41:17 by paulb] Fixed key ordering. diff -r 183c7c2d51a0 -r f600ff30cfe1 examples/Common/Dictionary/Dict.py --- a/examples/Common/Dictionary/Dict.py Fri Sep 09 22:34:05 2005 +0000 +++ b/examples/Common/Dictionary/Dict.py Fri Sep 09 22:41:17 2005 +0000 @@ -61,7 +61,9 @@ "Get all words under the given index 'slot'." all_words = [] - for c in slot.keys(): + keys = slot.keys() + keys.sort() + for c in keys: this_slot, words = slot[c] all_words += words all_words += self.get_all_words(this_slot)