Skip to content

Commit

Permalink
search newest by default
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Sep 18, 2023
1 parent 394f89d commit 08ceb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/components/search-comment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 08ceb3f

Please sign in to comment.