Re: Sorting question
Re: Sorting question
- Subject: Re: Sorting question
- From: James Cicenia <email@hidden>
- Date: Wed, 22 Sep 2004 11:39:21 -0500
I thought that EOSortOrderings were just for EOs. I just wound up
creating a simple
utility class with a compareTo in it. It works.
On Sep 22, 2004, at 11:32 AM, Jonathan 'Wolf' Rentzsch wrote:
James Cicenia, email@hidden, wrote:
Hello I have a set of key/values that I wish to sort descending by
value.
What is the best way to do this? TreeMaps don't work because the value
could be duplicated if I used it as the key.
Is there a standard WebObjects way?
There is! Check out EOSortOrdering's sortArrayUsingKeyOrderArray() and
sortedArrayUsingKeyOrderArray().
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden