I have a string array of filenames e.g.
I have managed to loop through each string in this string array and parse out the datetimes and put them in ANOTHER array. This other array is a DateTime array, and contains the datetimes from each file name.
i.e. DateTime Array
3/19/2010 10:13:14 AM
3/19/2010 11:10:09 AM
3/19/2010 11:44:19 AM
3/19/2010 13:44:19 PM
3/19/2010 14:28:23 PM
3/19/2010 08:32:54 AM
3/19/2010 09:01:05 AM
So I have 2 arrays, one is a string array and one is a datetime array - and they match up.
I need to sort the datetime array, with lowest date first - but I need to APPLY the sort to the string array. So I need the string array sorted the same as if it were the DateTime array.
i.e. I need to order the string array file names by date.
How can this be done simply?