sorting an array
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