Sorting List<FileInfo> in Natural sorted order .
I have a List which is being returned from a WCF service ,for List of files on Server. Which i am later using to populate the TreeView in my Client Application I need the list to be in naturally sorted order. For ex : I have a list something like List-1 , and my expected result is List-2 but i get List-3 as my output.(refer list given below) List-1 List-2 List-3 abc.jpg abc.jpg abc.jpg abc10.jpg abc10.jpg abc10.jpg abc100.jpg abc97.jpg abc100.jpg abc98.jpg abc98.jpg abc101.jpg abc97.jpg abc100.jpg abc102.jpg abc102.jpg abc101.jpg abc97.jpg abc101.jpg abc102.jpg abc98.jpg So far i have looked