examples/Common/Dictionary/Dict.py | raw changeset files shortlog |
1.1 --- a/examples/Common/Dictionary/Dict.py Fri Sep 09 22:34:05 2005 +0000 1.2 +++ b/examples/Common/Dictionary/Dict.py Fri Sep 09 22:41:17 2005 +0000 1.3 @@ -61,7 +61,9 @@ 1.4 "Get all words under the given index 'slot'." 1.5 1.6 all_words = [] 1.7 - for c in slot.keys(): 1.8 + keys = slot.keys() 1.9 + keys.sort() 1.10 + for c in keys: 1.11 this_slot, words = slot[c] 1.12 all_words += words 1.13 all_words += self.get_all_words(this_slot)