firestore ref where and orderby code example Example: firestore order number ascending firestoreDb.collection("ideas").orderBy("number", Query.Direction.ASCENDING)