How to built-in sort generic collection using one of the attribute?
Hi, I'm using vs2012
I have a collection, List<UserPrincipal>. How can I use the the buit-in collection Sort function to sort the collection based on one of the attribute of UserPrincipal (SamAccountName)? Looked at MSDN but didn't see any example code on how to do this.