• 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: sorting an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: sorting an array
      • From: Gino Pacitti <email@hidden>
References: 
 >sorting an array (From: Gino Pacitti <email@hidden>)
 >Re: sorting an array (From: George Domurot <email@hidden>)

  • Prev by Date: Re: sorting an array
  • Next by Date: Re: sorting an array
  • Previous by thread: Re: sorting an array
  • Next by thread: Re: sorting an array
  • Index(es):
    • Date
    • Thread