EOSortOrdering order1 = new EOSortOrdering( "personName.lastName", EOSortOrdering.CompareAscending); EOSortOrdering order2 = new EOSortOrdering( "personName.middleName", EOSortOrdering.CompareAscending); EOSortOrdering order3 = new EOSortOrdering( "personName.firstName", EOSortOrdering.CompareAscending);
NSMutableArray orderings = new NSMutableArray(order1);
orderings.addObject(order2);
orderings.addObject(order3);


And then use that in your fetch spec.


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks."
- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp


On 06/06/2006, at 9:50 AM, Jonathan Miller wrote:

Hi,

I need to create an EOFetchSpecification for an entity where by the objects returned are grouped on a key that is found through a relationship.

Does anyone have  a suggestion?

Thanks in advance

Johnny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/owen% 40uow.edu.au

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to