Hi Gino,

Take a peak at:

EOQualifier filteredArrayWithQualifier
and
NSArray sortedArrayUsingComparator

They can help you get the job done.

-George

On Dec 26, 2012, at 9:06 AM, Gino Pacitti <[email protected]> wrote:

> Hi List
> 
> Any pointers on sorting an array from a specific set.
> 
> 
> The fetched Array contains 100 records which contain a Voucher key (voucher 
> )and also and Enhanced key (enhanced) - plus other fields.
> 
> I need to present them with an alphabetic set which contains first only 
> (voucher=1 and enhanced=1), then (enhanced=1) and then the rest which are 
> (voucher=0 and enhanced=0).
> 
> Is there a way to do this by in-Memory sorting using some sort of comparator 
> etc or do I have to do this all in the SQL statement or in the FetchSpec?
> 
> 
> Gino
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net
> 
> 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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to