The below is a basic example.

<cfscript>
        sortedMap = CreateObject("java", "java.util.TreeMap");
        sortedMap.put("someKey", "someValue");
        sortedMap.put("anotherKey", "anotherValue");
</cfscript>

However, you would still need to create a Comparator in Java as well as  
use the appropriate methods to get the keys back out in order. If you  
aren't comfortable with Java than this is probably not your best option.

-Matt

On Thursday, July 31, 2003, at 12:17 PM, Suyer, Ed [PRD Non-J&J] wrote:

> Thanks for the feedback all!
>
> Matt, you wouldn't happen to have a snippet of CFML code you can send  
> me for
> this as I've never done this, or used any kind of Java code w/in CF  
> before.
> If not, no big thing.
>
> TIA
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to