LINQ how to add an order by to this statement?

Posted by JL on Stack Overflow See other posts from Stack Overflow or by JL
Published on 2010-03-08T00:23:10Z Indexed on 2010/03/08 0:30 UTC
Read the original article Hit count: 266

Filed under:

I have the following LINQ that I would like to also order by file creation date, how is this done?

taskFiles = taskDirectory.GetFiles(Id + "*.xml")
 .Where(fi => !fi.Name.EndsWith("_update.xml", StringComparison.CurrentCultureIgnoreCase))
 .ToArray();

© Stack Overflow or respective owner

Related posts about LINQ