I\'m trying to figure out the best way to custom sort a List. Lets say that T is a Object with a date(DateTime?) property and a status(string) property.
I have 3 cases.
query = query.OrderBy(x => x.Status == "Urgent" ? 1: x.Status == "Normal" ? 2: 3) .ThenBy(x => x.Status == "Urgent" ? null: x.Status == "Normal" ? x.Date: null);
Random musing: Does Ordering belong to the query, or to the class?