I have a recyclerview. In that I'm displaying data from Firebase Realtime DB. It is a grocery App. I have Fruits, vegetables and Provisional Items. I have used (My firebase path.... child(..).orderbyChild("Category").equalto("Fruits").
Upto this, it's working fine. I'm getting Fruits alone.
Next thing is, I need to keep all the not in stock products at the bottom of my recycler view. If I add one more orderbyChild("NotInStock"), the app is crashing.
Is there any way to solve this or alternate way to achieve this.. Need some help here.