Directory.GetFiles()
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, When I call the Directory.GetFiles() funcion, it returns an unsorted string array. I would write a sorting algo, but if theres a class that can sort a string array can someone let me know. cheers
You can use the static method System.Array.Sort(). This method has overloads for sorting an array in place, for customizing the sort order (non-case sensitive, etc.), or for just sorting sections of an array. The sorting algorithm employed is QuickSort. -- Peter Stephens