Skip to content

Sorting Collections #1267

Closed Answered by TomHeckl
TomHeckl asked this question in Questions and Help
Dec 24, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

The answer was so simple, I thought, surely anyone can solve this easily right away. I simply used a query...

import { query, collection, orderBy } from 'firebase/firestore'
import { useCollection from 'vuefire'

const q = query(collection(db, 'participant'), orderBy('name'))
const FS_sorted = useCollection(q)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@posva
Comment options

Comment options

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