Browsing index pages (2 articles)
↧
order by in lambda expressions
I'm trying to sort the data in lambda expression in the following case.if (Directory.Exists(Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["ErrorLogPath"].ToString()))){ string...
View ArticleAnswer by Ssithra for order by in lambda expressions
var a = Directory.GetFiles(path) .OrderBy(p => Regex.Replace(p,@"^.*\\(\d\d)(\d\d)(\d\d\d\d).*$","$3$2$1"))The order worked but was an alphabetical order, whereas you want a chronological order.The...
View Article
Browsing index pages (2 articles)