Is is possible to get files that is ordered same as in Windows Explorer
I know \"natural sort\", but it\'s not what I need, I need to get the file list ordered by th
Here's how to get a list of files sorted by their name:
var path = @"C:\windows"; // obviously change this to whatever you want
var files = System.IO.Directory.GetFiles (path).ToList ();
file.Sort();
And that's it!
Here's how you would do it per your given code sample:
var temperaturePressureSignalFilesList = Directory.GetFiles(TemperaturePressureSignalDirectory, "*.txt", SearchOption.TopDirectoryOnly).ToList();
temperaturePressureSignalFilesList.Sort();