Sorting Albums by foldername or folder created by the last time

Feb 7, 2009 at 11:14 PM
Hello everybody, sorry for my pool english,
I saw the disscussion of  "Sorting Albums and Photos by Filename"`,
but I want Sorting Albums by foldername or folder created by the last time,
The last time folder is showed the first,how can I do?
Would you please tell me,thank for your kindness!!
Feb 11, 2009 at 1:39 AM
I have find the answer:
1-Navigate to the method called "string[] dirs = Directory.GetDirectories(_physicalPath);"
2-Paste in a new method below that  with the following code:
                    Array.Sort<string>(dirs, delegate(string x, string y)
                    {
                        return y.CompareTo(x);
                    });



That's all there is to it. Hope this helps anyone looking to sort by foldername.