From 4e06c204a19dd520906d3f246b35fdfb42b5221a Mon Sep 17 00:00:00 2001 From: Cvolton Date: Sun, 18 Feb 2024 19:58:26 +0100 Subject: [PATCH] show featured mods on top --- loader/src/ui/internal/list/ModListLayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/src/ui/internal/list/ModListLayer.cpp b/loader/src/ui/internal/list/ModListLayer.cpp index ed0ca924..e4df8f26 100644 --- a/loader/src/ui/internal/list/ModListLayer.cpp +++ b/loader/src/ui/internal/list/ModListLayer.cpp @@ -63,7 +63,7 @@ static std::optional queryMatchKeywords( } else { if (metadata.getID() == "geode.loader") { - return 900; + return INT_MAX; } // this is like the dumbest way you could possibly sort alphabetically // but it does enough to make the mods list somewhat alphabetically @@ -130,7 +130,7 @@ static std::optional queryMatch(ModListQuery const& query, IndexItemHandle // hands of the rich Geode bourgeoisie // the number 420 is a reference to the number one bourgeois of modern // society, elon musk - weighted += item->isFeatured() ? 420 : 0; + weighted += item->isFeatured() ? 42069 : 0; return static_cast(weighted); } // keywords must match bruh