c# - How can I sort ObservableCollection? -


this question has answer here:

i've tried:

persons = in persons orderby i.age select i; 

but cant convert linqs system.linq.iorderedenumerable observablecollection<person>.

you need create new instance of it.

persons = new observablecollection<person>(from in persons orderby i.age select i); 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -