'how to order firebase firestore data by the field's value i.e. "reason" field name and its values may be "spam", "nudity" etc

here is the firestore documen

I want to sort the data by the "reason" field's values like "spam" , "nudity" and other reasons. could you please help me with that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source