• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Sorting question (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)

  • Prev by Date: Re: Sorting question
  • Next by Date: asynchronous processing in WOLongResponsePage
  • Previous by thread: Re: Sorting question
  • Next by thread: Re: Sorting question
  • Index(es):
    • Date
    • Thread