title: Creating a queryable table from Firestore
body: <p>I am looking to add a page where users can look up questions on my site in a similar way as done by <a href="https://i.stack.imgur.com/VT8Ps.png" rel="nofollow noreferrer">Leetcode (screenshot attached to this link)</a>. What would be the most efficient way to do this in Firestore db so that I don't constantly need to re-read data from firebase when a user decides to sort by another parameter? For example, I would need to run a query to sort by one question type and then I would need to run another query to sort by date posted. Is there a way to make this more efficient rather than reading all the data at once and doing the query client-side?</p>