I have over a thousand folders, each folder contains one or more files with the following names:
Unordered:
Alison.ext Heather.ext Molly.ext Paula.ext Sam.ext
You didn't mention exactly what sort of objects you have in the list, but let's say it's some generic arrangement like so:
public class File {
public string FileName { ... }
public long FileSize { ... }
/* elided */
}
Then, given an IEnumerable called, say, files
, you can just do:
var result = files.OrderBy(f => f.FileName);