Flutter how to sort a Firestore collection based on index of another collection
I have a FireStore collection named "products" and in there I have documents consisting of product data such as name, price, and category. It follows the structure like this { "name": "Milk Shake Strawberry", "price": "250", "category": "Drinks", "categoryID:1234 },…