Is it possible to reorder an embedded Array on a managed RealmObject.
For example we have the two classes:
public class Outer: RealmObject{
public IList<Inner> EmbeddedList {set;}
}
public class Inner: EmbeddedObject{
public int Number {get;set;}
}
and want to do something like : Outer.EmbeddedList.OrderBy(t=>t.number);
Additional Context: Of Course i can access the list orderd but the goal is to store the list orderd.
The list is bound to a CollectionView in Xamarin Forms so accessing the List by a seperat property like
public class Outer: RealmObject{
public IList<Inner> EmbeddedList {set;}
public IList<Inner> EmbeddedOrdered => EmbeddedList.OrderBy(t=> t.number);
}
is not really a good solution because crud operations will not be seen in the ui, as PropertyChanged will not be fired for the EmbeddedOrdered Property.
Thanks for any help in advance