How to sort file using System.IO

Hi, I have code like below in ax 2009,
How to sort file ? i need to read file in order from old to young.
Pls help.

public void setFileToImport()
{
System.IO.DirectoryInfo di;
System.IO.FileInfo[] fis;
System.IO.FileInfo fi;
InteropPermission interopPerm;
str fileExtension;
int i;
int l;
;

interopPerm = new InteropPermission(InteropKind::ClrInterop);
interopPerm.assert();

di = new System.IO.DirectoryInfo(filepath);
fis = di.GetFiles();
l = fis.get_Length();

for (i = 0; i < l; i++)
{
fi = fis.GetValue(i);
fileExtension = fi.get_Extension();
if (fileExtension == #csv)
{
filepath = fi.get_FullName();

}
}
CodeAccessPermission::revertAssert();
}

FileInfo class has several properties you might want to use, such as CreationTime and LastWriteAccessUtc.

I imported the data into the table and sorted out after the date of the file, and it’s probably actually seems to be a solution. Thanks Martin .