Case Insensitive Sorting with Firebase orderByChild

Im using FirebaseRecyclerAdapter to display a list of strings. My request uses orderByChild. The results are first sorted with a capital letter and look like this:

Clause 1, Clause 2, Clause 3, aItem, bItem, zItem.

How to use orderByChild leading to case insensitive sorting?

+5
source share
1 answer

No. View.

If you have data that you want to sort, but should also have a custom view of this data, save two versions

posts post_id_0 display_version: William sort_version: william post_id_1 display_version: Henry sort_version: henry 

Of course, you can read all the data from Firebase and use .toLower or whatever your platform call, and then sort the code.

+7
source

All Articles