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

NSArray.sortedArrayUsingComparator(OrderedAscending)


  • Subject: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • From: Nathan Dumar <email@hidden>
  • Date: Tue, 1 Jun 2004 20:37:31 -0400

If I do this:

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 ... ?

Or am I going about this all wrong? (I'm trying to recreate some of the basic functionality of a WODisplayGroup, after deciding not to use it, for reasons mentioned in an earlier post.)

Sorry to bother with such a simple question, but I could not get enough information from the docs to figure this out. (I found similar questions in the omnigroup, but none that address this specifically.)

Thank you,
Nathan
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
      • From: George Domurot <email@hidden>
    • Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
      • From: Ray Ackland <email@hidden>
    • Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
      • From: Art Isbell <email@hidden>
  • Prev by Date: FrontBase and OpenBase on Solaris/LINUX/MacOS-X
  • Next by Date: Off Topic (Slightly) Missing Groups in Documentation Window xCode 1.2
  • Previous by thread: FrontBase and OpenBase on Solaris/LINUX/MacOS-X
  • Next by thread: Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • Index(es):
    • Date
    • Thread