How to use an array to organize and sort?
This is a basic ColdFusion question, but I don't do this enough to have progressed very far. Ugh.
I have a folder of documents on my web site that are newsletters, all in the filename format of mmddyy.cfm. I have created an display of these as links noting the date in text by using this:
<cfdirectory
action="list"
directory="D:\inetpub\leithpetwerks\BunFun\BFpages"
name="Stuff"
sort="Name">
<cfoutput query="Stuff">
<cfif (RIGHT(Stuff.name,4) EQ ".cfm") or (RIGHT(Stuff.name,5) EQ ".html")>
<a href="#Stuff.name#">#MonthAsString(left(Stuff.name,2))# #right(left(Stuff.name,4),2)#, #right(left(Stuff.name,6),2)#</a><BR>
</cfif>
</cfoutput>
But what I need to do is have them presented by chronological order... not the order they are present in the file system. Conceptually I imagine I'd throw then into an array and somehow address the sorting... but I have no idea how. Can someone help me?
Thanks in advance.
