using System.Collections.Generic;
using System.Threading.Tasks;
using System.Diagnostics;
public static void Main()
Console.WriteLine("Hello World");
var str = new List<string>() {
@"C:\Users\rosunkari\Desktop\SBM\MyPurposeCode\FilePath\chfs_kynect_ins_agents_20210121_02_35_09_PM.csv",
@"C:\Users\rosunkari\Desktop\SBM\MyPurposeCode\FilePath\chfs_kynect_ins_agents_20210121_03_40_09_AM.csv",
@"C:\Users\rosunkari\Desktop\SBM\MyPurposeCode\FilePath\chfs_kynect_ins_agents_20210221_03_35_09_PM.csv",
@"C:\Users\rosunkari\Desktop\SBM\MyPurposeCode\FilePath\chfs_kynect_ins_agents_20210221_04_40_09_AM.csv"};
var order = str.OrderBy( f => f.Substring(f.LastIndexOf("agents_")+1)).ToList();
foreach(var s in order) {