diff --git a/proxy/sources/mangadex.py b/proxy/sources/mangadex.py index 4e083278..cbc3932b 100644 --- a/proxy/sources/mangadex.py +++ b/proxy/sources/mangadex.py @@ -291,7 +291,12 @@ def md_api_common(self, meta_id): ch[1]["volume"] or "Unknown", ] for ch in sorted( - chapter_dict.items(), key=lambda m: float(m[0]), reverse=True + chapter_dict.items(), + key=lambda m: float( + ".".join(str(m[0]).split(".")[:2]) + + "".join(str(m[0]).split(".")[2:]) + ), # To get around weird chapter numbering like 21.15.1.. + reverse=True, ) ]