diff --git a/backend/handler/database/roms_handler.py b/backend/handler/database/roms_handler.py index 1d431258a..2a377f377 100644 --- a/backend/handler/database/roms_handler.py +++ b/backend/handler/database/roms_handler.py @@ -885,10 +885,9 @@ class DBRomsHandler(DBBaseHandler): func.lower(Rom.name).regexp_replace(STRIP_ARTICLES_REGEX, "", "i") ) - if isinstance(order_by_attr.type, (String, Text)): - order_by_attr = order_by_attr.regexp_replace( - r"(\d+)", r"00000000000\1", "g" - ).regexp_replace(r"0*(\d{12})", r"\1", "g") + order_by_attr = order_by_attr.regexp_replace( + r"(\d+)", r"00000000000\1", "g" + ).regexp_replace(r"0*(\d{12})", r"\1", "g") # Get the row number and first letter for each item subquery = (