I'm using FirebaseRecyclerAdapter
and pass FirebaseRecyclerOptions
with some query into constructor. Each item has number of fields including timestamp a
and another integer field b
. So I want items with older a
but less b
to be on top of list. It's easy to implement with sqlite, but not so easy with nosql. It seems I need to add some extra field which keeps both fields:
String.valueOf(a) + String.valueOf(b)
but how to achieve asc / desc properties?
Loading the whole list and sorting in Java is not an option.