Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Sort a directory on creationdate

  Asked By: Molly    Date: Jun 16    Category: Asp.net    Views: 690

I have a DirectoryInfo object which I would like to sort on creationdate of the directories. I can't find a way to do it. I even tried to convert it to a 2 dimensional array but that lacks sorting methods.

Anybody done this?



2 Answers Found

Answer #1    Answered By: Edith Mcdonald     Answered On: Jun 16

Why not just manually create a datatable and then sort  it?

Answer #2    Answered By: Blas Fischer     Answered On: Jun 16

I forgot about the DataTable's sorting  capabilities.
Just sorting a datatable would that mean thisL:
Or is there a better / cleaner way?

Didn't find what you were looking for? Find more on Sort a directory on creationdate Or get search suggestion and latest updates.