Android Firebase multiple sort

后端 未结 1 1293
后悔当初
后悔当初 2021-01-26 01:13

I have a question about firebase sorting.

I have the next database:

{
    \"-Ka8xxTgyFB8yYKH50j_addclose\" : {
        \"number\" : 0,
        \"point\"          


        
相关标签:
1条回答
  • 2021-01-26 01:57

    You'll need to sort all your data client side as there can only be one orderBy column per query.

    If you need to double sort server side you'll have to update your database to have a combined key that would hold both timestamp and point.

    0 讨论(0)
提交回复
热议问题