Skip to content

Commit 2cdf22d

Browse files
committed
Fix incorrect sort order
1 parent d6407bb commit 2cdf22d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/publications.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const sortedPublications = computed(() => {
4040

4141
return filteredPubs.sort((a, b) => {
4242
const sortKey = sorting.value.sort
43-
const order = sorting.value.ascending ? 1 : -1
43+
const order = sorting.value.ascending ? -1 : 1
4444

4545
if (sortKey === "year") {
4646
if (a.year !== b.year) {

0 commit comments

Comments
 (0)