I've this code that will list every file type in a dir and list it in alphabetical order. How can I list it so it shows the last file uploaded first? code can be viewed here.. #######################code####################
<br>
<div align="center">
<center>
<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0 width="100%"
style="border-collapse: collapse" bordercolor="#000000">
<TR BGCOLOR="#AD7500"><TD width="147">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>Filename:</B></FONT></TD>
<TD width="120">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>
Size: </B></FONT></TD><TD width="100">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>File type:</B></FONT></TD>
<TD width="146">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>
Date created:</B></FONT></TD>
<%
' Create an instance of the FileSystemObject
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject"
' Create Folder Object
Set MyFolder=MyFileObject.GetFolder(Server.MapPath("shared")
'Loop trough the files in the folder
FOR EACH thing in MyFolder.Files
%>
<TR BGCOLOR="#F7F7E7"><TD bgcolor="#906304" width="147"><A HREF="shared/<%=thing.Name%>"><%=thing.Name%></A><p
style="margin-top: 0; margin-bottom: 0"> </TD>
<TD ALIGN=RIGHT bgcolor="#906304" width="120" valign="top"><font color="#FFFFFF"><%=thing.Size%></font><p style="margin-top: 0; margin-bottom: 0">
bytes</TD>
<TD bgcolor="#906304" width="100"><font color="#FFFFFF"><%=thing.Type%></font><p
style="margin-top: 0; margin-bottom: 0"> </TD><TD bgcolor="#906304"
width="146"><font color="#FFFFFF"><%=thing.DateCreated%></font><p
style="margin-top: 0; margin-bottom: 0"> </TD>
<%
NEXT
%>
</TABLE></center>
</div>
<br>
</td>
</tr>
</table>
</center>
</div>
<br>
<div align="center">
<center>
<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0 width="100%"
style="border-collapse: collapse" bordercolor="#000000">
<TR BGCOLOR="#AD7500"><TD width="147">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>Filename:</B></FONT></TD>
<TD width="120">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>
Size: </B></FONT></TD><TD width="100">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>File type:</B></FONT></TD>
<TD width="146">
<p style="margin-top: 0; margin-bottom: 0"><FONT COLOR="#FFFFFF"><B>
Date created:</B></FONT></TD>
<%
' Create an instance of the FileSystemObject
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject"
' Create Folder Object
Set MyFolder=MyFileObject.GetFolder(Server.MapPath("shared")
'Loop trough the files in the folder
FOR EACH thing in MyFolder.Files
%>
<TR BGCOLOR="#F7F7E7"><TD bgcolor="#906304" width="147"><A HREF="shared/<%=thing.Name%>"><%=thing.Name%></A><p
style="margin-top: 0; margin-bottom: 0"> </TD>
<TD ALIGN=RIGHT bgcolor="#906304" width="120" valign="top"><font color="#FFFFFF"><%=thing.Size%></font><p style="margin-top: 0; margin-bottom: 0">
bytes</TD>
<TD bgcolor="#906304" width="100"><font color="#FFFFFF"><%=thing.Type%></font><p
style="margin-top: 0; margin-bottom: 0"> </TD><TD bgcolor="#906304"
width="146"><font color="#FFFFFF"><%=thing.DateCreated%></font><p
style="margin-top: 0; margin-bottom: 0"> </TD>
<%
NEXT
%>
</TABLE></center>
</div>
<br>
</td>
</tr>
</table>
</center>
</div>