Link sort
It would be great to have the posibility to sort on a Link.
ie.:
RealmResults
Absolutely - thanks for the suggestion!
+1 from http://stackoverflow.com/questions/31435374/realm-findallsorted-by-field-of-a-filed
:+1: :)
:+1: :smiley:
+1
:+1:
+1
In my case, I wish to retrieve a list of A sorted by A.date with its childs sorted by B.date, where:
Class A {
int id;
Date date;
RealmList<B> bList;
}
Class B {
int id;
Date date;
}
Example query:
RealmResults<A> results= realm.where(A.class)
.findAllSorted(new String[]{"date", "bList.date"}, new Sort[]{Sort.ASCENDING, Sort.ASCENDING});
+1
+1 as well. I have a lot of redundant fields that duplicates data in their children for sorting purposes. Updating all these values is a bit of a pain.
+1
+15 from #709
@cmelchior is there any timeline for this or a recommended workaround? I have a similar case where i have an array of child objects with a date property, thanks.
:+1: I'm currently in the process of migrating an app from SQLite to Realm and I was kind of expecting that this would work. Since it doesn't I'm currently a bit stuck and need to wait till this is implemented. Any news on this? Is this being worked on? Thanks!
+1
+1
+1
+1 this is really important - do you guys know when this is scheduled in for? Need to know whether I should wait, or implement a workaround now.
+1
+1
+1