<Multiple orderby based on this conditions in Fire...
# stackoverflow
u
Multiple orderby based on this conditions in Firestore I want to make my list in ASCENDING order based on the menuCategory which has the value "food" and "drink", then menuName which is also ASCENDING. And lastly, based on menuPrice from the cheapest to the most expensive. when { userId != null -> { firebaseFirestore.collection("outlets").document(outletId) .collection("menu") .orderBy("menuCategory") .orderBy("menuName") .orderBy("menuPrice", Query.Direction.ASCENDING).get()...