Skip to content

Commit

Permalink
Reverse order of equal similarity results
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 15, 2019
1 parent 7c80851 commit a0e7772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xkcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(self, id: int, title: str, alt: str, transcript: str) -> None:
self.transcript = transcript

def __lt__(self, other: 'XKCDIndex') -> bool:
return self.id < other.id
return self.id > other.id

def __gt__(self, other: 'XKCDIndex') -> bool:
return self.id < other.id
Expand Down

0 comments on commit a0e7772

Please sign in to comment.