Browse Source

sorted already retrieves the keys

pull/236/head
Oliverpool 8 years ago
parent
commit
ee3c4c1038
  1. 2
      patacrep/index.py

2
patacrep/index.py

@ -194,6 +194,6 @@ class Index:
def entries_to_str(self):
"""Return the LaTeX code corresponding to the index."""
string = ""
for letter in sorted(self.data.keys()):
for letter in sorted(self.data):
string += self.idxblock_to_str(letter, self.data[letter]) + EOL
return string

Loading…
Cancel
Save