Skip to content

PageFind Sorting #245

Answered by ATQQ
Karlstens asked this question in Q&A
Jun 11, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

now [email protected] support sort option

pagefindPlugin({
  sort(a, b) {
    return b.meta.date - a.meta.date
  },
})

you can also set showDate: true show date suffix

pagefindPlugin({
  showDate: true
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Karlstens
Comment options

@ATQQ
Comment options

ATQQ Jun 12, 2024
Maintainer

Comment options

You must be logged in to vote
0 replies
Answer selected by ATQQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants