Skip to content

Commit 943660b

Browse files
committed
fix: change default sorting to downloads-week-desc as in parseSortOption
1 parent 0164064 commit 943660b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/pages/org/[org].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const {
5757
setSort,
5858
} = useStructuredFilters({
5959
packages,
60-
initialSort: (normalizeSearchParam(route.query.sort) as SortOption) ?? 'updated-desc',
60+
initialSort: (normalizeSearchParam(route.query.sort) as SortOption) ?? 'downloads-week-desc',
6161
})
6262
6363
// Pagination state
@@ -86,7 +86,7 @@ const updateUrl = debounce((updates: { filter?: string; sort?: string }) => {
8686
query: {
8787
...route.query,
8888
q: updates.filter || undefined,
89-
sort: updates.sort && updates.sort !== 'updated-desc' ? updates.sort : undefined,
89+
sort: updates.sort && updates.sort !== 'downloads-week-desc' ? updates.sort : undefined,
9090
},
9191
})
9292
}, 300)

0 commit comments

Comments
 (0)