Figure out an algorithm that will sort a list of directories like so:
before wrote:directory/file.htm
file.htm
directory/another/file.htm
another.htm
directory/another.htm
a_really_long_filename_for_some_odd_reason.htm
after wrote:directory/another/file.htm
directory/another.htm
directory/file.htm
a_really_long_filename_for_some_odd_reason.htm
another.htm
file.htm
See how the folders are listed first even though it isn't alphabetically so?
I have been personally unable to do this despite around 10-15 hours of work.
I will continue to try but I want to see if the best minds out there can accomplish what I have not.
Remember, the names are all strings!










