You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing query, I want to get a RealmResult where the search field starts with query text will be added first, then the strings that contains the query string somewhere in the search field except start and end. And at last there will be objects whose search fields ends with search query.
For example, I have data = {"razon", "zebra", "fixar", "razib", "furan"} . Now, if I query with "ra", I want the realm result to return data in this order, result = {"razon", "razib" , "furan", "zebra"}
In the example, "razon" and "razib" starts with "ra", so they are in the front, then comes "furan" as ra is in somewhere in the string except start and end. And at the last "zebra" is added cause it ends with "ra".
How can I do it with a single query or in a efficient way?
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: