是否可以在 RealmResult ex. 中添加过滤器,例如优先级。
RealmResult<Persons> persons
Id | Name
1 Eleo
2 Cath
8 Chris
9 Emman
5 John
我想优先考虑“John”,然后是“Emman”,然后按“Id”排序
RealmResult<Persons> persons
Id | Name
5 John
9 Emman
1 Eleo
2 Cath
8 Chris
是否有可能实现这种排序?
RealResult <Persons> persons_list = realm.where(Persons.class).findAll().sort("id").priority("id",int[]{5,9});