I have a LINQ query as below,
var sortedResults = (from r in this.CurrentTemplateInfos
where r.EffectiveEnd == null
orderby r.Description
select r);
From the above query ,field Description is made of 3 sub strings(Showtype:Show:StartDate-Endate)
separated by Colon (:)
. Now as per the new requirement i
need to do orderby ascending for first two fields(Showtype:Show)
and descending by StartDate
from the description value, e.g.
Show : Main Street Trolley : 6/12/2010 - 7/15/2010
ShowType : Parades : 2/10/2010 - 6/16/2010
ShowType : Parades : 6/17/2010 - 8/26/2010
ShowType : Parades : 8/27/2010 - 10/26/2010
Output should be
Show : Main Street Trolley : 6/12/2010 - 7/15/2010
ShowType :Parades : 8/27/2010 - 10/26/2010
ShowType : Parades : 6/17/2010 - 8/26/2010
ShowType : Parades : 2/10/2010 - 6/16/2010
please help me on this.