• 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: George Domurot <email@hidden>
  • Date: Tue, 1 Jun 2004 23:26:01 -0400

You may want to try:

	NSArray sortOrdering =  new
NSArray(EOSortOrdering.sortOrderingWithKey("name",
EOSortOrdering.CompareCaseInsensitiveAscending ));
	EOSortOrdering.sortArrayUsingKeyOrderArray( users, sortOrdering );

On Jun 1, 2004, at 8:37 PM, Nathan Dumar wrote:

> 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.
_______________________________________________
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: Can't find Application class at launch
  • Next by Date: Problems launching a process
  • Previous by thread: Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
  • Next by thread: Off Topic (Slightly) Missing Groups in Documentation Window xCode 1.2
  • Index(es):
    • Date
    • Thread