generate ordered indexes on sorted letter

This commit is contained in:
dadel 2018-01-19 22:49:17 +01:00
parent 8d1f38accd
commit a3011adf31
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class LettersData(object):
"""
subvocab = {}
i = 0
for c, info in self.vocab.items():
for c, info in sorted(self.vocab.items(), key=lambda x: x[0]):
if info['count'] >= min_count:
subvocab[c] = {
'count': info['count'],