I want to retrieve data from Firebase. The retrieving data should be visible and have appropriate property "vis" and flag "true". It's a quite simple task. But I also want specific order, so in the beginning should go child with property "pos" equal 1, than 2, and etc.
There is my current line of code
mQuery = mDatabaseReference.orderByChild("vis").equalTo("true");
The data structure looks like:
common
code:"common"
name:"Common"
pos:"5"
vis:"false"
court
code: "court"
name: "Court reform"
pos: "2"
vis: "false"
june12
code: "june12"
name: "12 June"
pos: "1"
vis: "true"