Skip to content

Commit

Permalink
Fix for sort bug in submit-distances
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Jan 26, 2015
1 parent 79a87cd commit b466341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/edsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ def __str__(self):

if self.errors:
text += "+Problems:\n"
errors = sorted(self.errors, key=lambda e: e.rhs)
errors.sort(key=lambda e: e.lhs)
errors = sorted(self.errors, key=lambda e: e.rhs or "")
errors.sort(key=lambda e: e.lhs or "")
errors.sort(key=lambda e: e.code)
for err in errors:
text += "|- {:.<30s} #{} {}".format(
Expand Down

0 comments on commit b466341

Please sign in to comment.