Re: NSArray.sortedArrayUsingComparator(OrderedAscending)
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.