Greetings! I want to use LINQ to query a list of objects and sort them by an enumeration value, string value then union the rest of the list sorted in a similar fashion LINQ newbie here, so be gentle.
//CTOR for my class
MyClass(id, "Name Value Here", Enum.EnumValueHere);
I create a list of these objects and want to variably sort them such that all items with Enum.EnumValue[X] are shown first in the list, sorted by Name, followed by all other items sorted in a similar fashion (almnost like a Union of result sets in SQL)
//What I have so far (only sorts the list)
List<MyClass> = (from s in MyClass orderby s.EnumValue, s.NameValue select s).ToList();
Any Guru's out there have some LINQ Magic to share?
Thanks!