Does anyone know in what order the directories will be returned? (i.e.
alphabetically or in date order)

Thanks

Re: FileSystem.GetDirectories by Jim

Jim
Wed Jun 07 15:15:47 CDT 2006

> Does anyone know in what order the directories will be returned? (i.e.
> alphabetically or in date order)

Regardless of which way they are currently returned, I wouldn't create a
mission critical application that depended on that order. I would recommend
that you get them as they come and then worry about sorting them later. Even
if it works now, MSFT could easily change the sort order in a future OS/Framework
version as they did with reflection between 1.1 and 2.0. (see http://devauthority.com/blogs/jwooley/archive/2005/11/02/597.aspx)

Jim Wooley
http://devauthority.com/blogs/jwooley/default.asp