I want a list of items in which I want to perform a search. I want items to be filtered based upon the query in case sensitive order. For Example if user searches for milk the order should be like milk Milk butter milk Butter MILK Below is my current query but since I have added Case.Insesitive it gives me any random order based on the position of item in table.
mRealm.where(Product.class).contains("productTags.name", tag,Case.INSENSITIVE).findAll();