Array.Sort<FileInfo>(fileList, delegate(FileInfo x, FileInfo y) { return x.Name.CompareTo(y.Name); });