Re: sorting an array
Re: sorting an array
- Subject: Re: sorting an array
- From: Lachlan Deck <email@hidden>
- Date: Thu, 27 Dec 2012 17:14:31 +1100
EOSortOrdering.sortedArrayUsingKeyOrderArray(objects, sortOrderings)
Look also for ERXKey equivalents.
On 27/12/2012, at 4:30 AM, George Domurot <email@hidden> wrote:
> 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@hidden> 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@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden