• 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: "Jonathan 'Wolf' Rentzsch" <email@hidden>
  • Date: Wed, 22 Sep 2004 11:32:37 -0500

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Sorting question
      • From: James Cicenia <email@hidden>
  • Prev by Date: Sorting question
  • Next by Date: Re: Sorting question
  • Previous by thread: Sorting question
  • Next by thread: Re: Sorting question
  • Index(es):
    • Date
    • Thread