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

sorting an array


  • Subject: sorting an array
  • From: Gino Pacitti <email@hidden>
  • Date: Wed, 26 Dec 2012 17:06:28 +0000

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

  • Follow-Ups:
    • Re: sorting an array
      • From: George Domurot <email@hidden>
  • Prev by Date: Re: editPageForNewObjectWithEntityNamed and a relationship?
  • Next by Date: Re: sorting an array
  • Previous by thread: Re: RPM package for wotaskd now available
  • Next by thread: Re: sorting an array
  • Index(es):
    • Date
    • Thread