firestore query orderby code example
Example 1: firestore order number ascending
firestoreDb.collection("ideas").orderBy("number", Query.Direction.ASCENDING)
Example 2: order documents in firestore
// Create Data
const timestamp = firebase.firestore.FieldValue.serverTimestamp;
db.collection('things').add({ ...myData, createdAt: timestamp() })
// Query
db.collection('things').orderBy('createdAt').startAfter(today)