Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting disregard case difference for CFDIRECTORY

Status
Not open for further replies.

new2unix

Programmer
Joined
Feb 5, 2001
Messages
143
Location
US
Hi,

Is there a way to sort the result of a CFDIRECTORY list disregard the case difference? When I output the list, file with upper case name always display before those with lower case name.


Thanks

Mike
 
Hey Mike,

I don't think there is a way to make the sort case insensitive. On a windows platform, I would just write a simple app in VB to do this type of sort, compile it into a COM object, and call it with <cfobject>. If you're not on Windows or don't like the COM approach, the only other way I could suggest would be to loop through the query and swap rows using querySetCell() until it was sorted the way you want.

Neither approach is real elegant but they should at least accomplish what you need.

Good luck,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top