From 08ceb3f2172189aa1e23d4e93a2704935b808cfd Mon Sep 17 00:00:00 2001 From: feruz Date: Mon, 18 Sep 2023 13:45:56 +0300 Subject: [PATCH] search newest by default --- src/common/components/search-comment/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/components/search-comment/index.tsx b/src/common/components/search-comment/index.tsx index 7925c83b975..dd6d9f0c24a 100644 --- a/src/common/components/search-comment/index.tsx +++ b/src/common/components/search-comment/index.tsx @@ -70,7 +70,7 @@ const pureState = (props: Props): State => { const qs = queryString.parse(location.search); const q = qs.q as string; - const sort = (qs.sort as SearchSort) || SearchSort.POPULARITY; + const sort = (qs.sort as SearchSort) || SearchSort.NEWEST; const date = (qs.date as DateOpt) || ls.get("recent_date", "month"); const hideLow = !(qs.hd && qs.hd === "0"); const advanced = !!(qs.adv && qs.adv === "1");