• 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: NSArray.sortedArrayUsingComparator(OrderedAscending)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray.sortedArrayUsingComparator(OrderedAscending)


  • Subject: Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • From: Ray Ackland <email@hidden>
  • Date: Wed, 2 Jun 2004 13:31:44 +1200

Nathan,

I think you are missing a bit from your code. Check out the documentation for EOSortOrdering. It gives some examples of was of doing some stuff.

You should be able to find the documentation in:
/Developer/Documentation/WebObjects/Reference/API/index.html

or in the equivalent location on the web:
http://developer.apple.com/documentation/WebObjects/Reference/API/ index.html


Look down the lower left hand column for EOSortOrdering.

Ray.

On 02/06/2004, at 12:37, Nathan Dumar wrote:

users = users.sortedArrayUsingComparator(OrderedAscending);

what key is used to sort? (users is an NSArray of custom type UserClass)

How can I tell it to use user.name or user.ssn or ... ?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSArray.sortedArrayUsingComparator(OrderedAscending) (From: Nathan Dumar <email@hidden>)

  • Prev by Date: Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • Next by Date: Can't find Application class at launch
  • Previous by thread: Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • Next by thread: Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • Index(es):
    • Date
    • Thread