Hi Emad,
Thank you for using Syncfusion products.
We have checked the reported query from our end. We would like to let you know that you can sort the ObservableCollection which can be binded to the TreeView.ItemsSource property by adding the following code in your ViewModel class,
public ObservableCollection<StagingModel> loadEpics()
{
ObservableCollection<StagingModel> kk = new ObservableCollection<StagingModel>();
Device.BeginInvokeOnMainThread(async () =>
{
var items = await restServiceEpics.GetEpicsAsync();
this.Menu = new ObservableCollection<StagingModel>(items.OrderByOrderBy(i => i.ItemName));
});
return Menu;
} |
We have prepared sample for your requirement. Please refer the sample and let us know if you would require any further assistance.
Regards,
Lakshmi Natarajan