Hello! I want to use LINQ to query a list of objects and sort them by enumeration value, a string value, and then combining the rest of the list, sorted in a similar way, LINQ's newbie is here, so be careful.
//CTOR for my class
MyClass(id, "Name Value Here", Enum.EnumValueHere);
I create a list of these objects and want to sort them differently so that all elements with Enum.EnumValue [X] are shown first in a list sorted by name, and then all other elements sorted in a similar way (almnost as a union of result sets in SQL)
List<MyClass> = (from s in MyClass orderby s.EnumValue, s.NameValue select s).ToList();
Do any gurus have any kind of LINQ Magic to share?
Thanks!
Portagemonkey