Skip to content

Commit

Permalink
dont need to sort when all have same distance
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Jul 21, 2009
1 parent ce33a29 commit 7a401a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/jbovlaste.py
Expand Up @@ -84,7 +84,6 @@ def query(self, query=None, type=None, valsi=[], gloss=None,
elif not results:
d = _Damerau(query, self._entries)
results = [i for i in self._entries if d.distances[i] < 2]
results.sort(d.cmp)
return results
else:
return self.find(**args)
Expand Down

0 comments on commit 7a401a8

Please sign in to comment.