Sort file as Month name in ColdFusion

Posted by Simon Guo on Stack Overflow See other posts from Stack Overflow or by Simon Guo
Published on 2010-05-18T15:52:16Z Indexed on 2010/05/18 16:10 UTC
Read the original article Hit count: 307

Filed under:

I have a directory, it contains files like:

january2009.xml, february2009.xml, march2009.xml,april2009.xml,january2010.xml, february2010.xml, march2010.xml,april2010.xml ...

I use the cfdirectory to get the file by year. Right now, I want to display it as sorted order in month. Say If I only want year 2009 data. I want it sorted as

january2009.xml, february2009.xml, march2009.xml,april2009.xml

but not

april2009.xml, february2009.xml, january2009.xml, march2009.xml

Anyone has easy way to do it in ColdFusion?

© Stack Overflow or respective owner

Related posts about coldfusion