From a0e777277e07bdb428e92ee0d2d98c8c3337ba4b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 15 Jan 2019 15:52:03 +0200 Subject: [PATCH] Reverse order of equal similarity results --- xkcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkcd.py b/xkcd.py index 992e560..9b796fb 100644 --- a/xkcd.py +++ b/xkcd.py @@ -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