sort files into alphabetical folders c# code example Example: Directory.GetFiles sorted by name var sorted = Directory.GetFiles(".").OrderBy(f => f);