Re: Sorting an array of EOs using my own selector
Re: Sorting an array of EOs using my own selector
- Subject: Re: Sorting an array of EOs using my own selector
- From: Chuck Hill <email@hidden>
- Date: Wed, 9 Mar 2005 11:08:18 -0800
Hi Hugi!
It's been a while. I'm not clear on how you want to do the sorting.
If you just have an array of EOs then you can use NSComparator, I do so
all the time. I usually make them public inner classes of my EO and
provide a static instance for ease of use. If you are trying to sort in
a fetch spec then take a look at
com.webobjects.eocontrol.EOSortOrdering.ComparisonSupport
Chuck
On Mar 9, 2005, at 5:51 AM, Hugi Thordarson wrote:
Hi all!
I feel somewhat stupid not being able to figure this out on my own,
but here goes:
I have an array of EOs that I need to sort in Icelandic alphabetical
order (I can't use the DB for sorting, since I don't have access to it
to create a collation).
One would think that this should be simple enough, and I've thought of
several hacks; all of which make me jump through hoops that I don't
tink I should have to.
I have my own NSComparator subclass for comparing Icelandic strings
and I often use that to sort NSArrays of Strings - can I use this
comparator to sort the EOs somehow?
Cheers,
Hugi
// Hugi Thordarson
// Development mgr.
// Vefsyn hf. - development, analysis, marketing
// http://www.vefsyn.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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