Coldfusion - cfdirectory sort order question
Posted on 2013-05-16
I have folder with images named like A199250-1.jpg, A199250-2.jpg, A199250-11.jpg, etc...Each image name has a corresponding property listing id like: "A199250"
The problem is trying to sort these in the correct order.
Here is how they currently sort:
I need them to sort like:
<cfdirectory action="list" directory="#ExpandPath('/ftp/rets/photos/')#" filter="#variables.IDnumber#*" name="files" sort = "directory ASC">
Can someone have a look at my code and tell me how to accomplish this? Thanks!