Commits

Kevin Lyda committed 2b8d92a

Alphabetize suggestions.

Comments (0)

Files changed (1)

misspellings_lib.py

     """
     suggestions = set(self._misspelling_dict.get(word, [])).union(
         set(self._misspelling_dict.get(word.lower(), [])))
-    return [same_case(source=word, destination=w) for w in suggestions]
+    return sorted([same_case(source=word, destination=w)
+                   for w in suggestions])
 
   def dump_misspelling_list(self):
     """Returns a list of misspelled words and corrections."""