Firebase query ordering not working properly

后端 未结 2 555
[愿得一人]
[愿得一人] 2020-12-07 04:23

Basically I have played with Firebase for the past week, and I recently stumbled upon the \'queryOrderedByChild()\' that as far as I know - allows you to sort data in fireba

2条回答
  •  Happy的楠姐
    2020-12-07 04:53

    If you using order by child you going to order your id you no going to touch it's value.

    Then maybe you have to try something like

    • (FIRDatabaseQuery *) queryOrderedByValue
      queryOrderedByValue: is used to generate a reference to a view of the data that's been sorted by child value.

提交回复
热议问题