I have a list of strings that contains paths to files. I want to order this list according to the creation time of the files (first element should be the newest file) I work with C#. I thought of using a lambda but so far I get stuck with this line. it recognizes that result as DateTime object, how can I get the name of the file itself. It feels like a simple problem but I am new to lambda expression.
nameList.Sort(x => File.GetCreationTime(x));
thanks,