ASP.NET MemberhipUserCollection sorting IsApproved, comment
3 answers
I found another example that used the following code (I used a generic list instead of MemberhipUserCollection):
users = users.OrderByDescending(x => x.IsApproved).OrderBy(x => x.Comment).ToList();
EDIT: DOH! Need ThenBy () instead of the second OrderBy ():
users = users.OrderByDescending(x => x.IsApproved).ThenBy(x => x.Comment).ToList();
+4
source to share