Re: Sort Algorithm Question
Re: Sort Algorithm Question
- Subject: Re: Sort Algorithm Question
- From: Chuck Hill <email@hidden>
- Date: Wed, 23 Feb 2005 11:03:43 -0800
You want this as part of a fetch? I think you will need to work with
DB specific collation sequences.
You want to do this in-memory? com.webobjects.foundation.NSComparator
is your friend!
Chuck
On Feb 23, 2005, at 10:58 AM, James Cicenia wrote:
Hello -
I would like to do a sort with a primary and secondary sort both
ascending, HOWEVER,
I want the primary sort which is comprised of dates to have the nulls
sorted towards the bottom.
Here is an example
AAAA Date 1
AAAA Date 2
BBBB Date 1
BBBB ----------
CCCC Date 3
CCCC Date 4
CCCC ---------
Any thoughts on the most efficient means to do this?
- James Cicenia
--
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