Re: sort orderings
Re: sort orderings
- Subject: Re: sort orderings
- From: John Spicer <email@hidden>
- Date: Thu, 29 Apr 2004 09:19:07 -0500
The usual way. Like this:
fetchSpec = new EOFetchSpecification ("myTable", null, sortOrderings);
On Apr 29, 2004, at 8:50 AM, George Domurot wrote:
> How are you applying the sort ordering?
>
> On Apr 29, 2004, at 9:31 AM, John Spicer wrote:
>
>> I'm building some sorts. Some of the fields are int and some are
>> string. The int sorts work fine. The strings don't. This is the code
>> I'm using:
>>
>> sortOrderings = new NSMutableArray();
>> EOSortOrdering sortOrdering;
>> sortOrdering = new EOSortOrdering("eventType", EOSortOrdering.
>> CompareDescending);
>> sortOrderings.addObject(sortOrdering);
>>
>> where eventType is a Java string. I've tried also
>> CompareCaseInsensitiveAscending and CompareAscending as well.
>>
>> The records seem to be in a random order - it does not even correspond
>> to the order in the database table.
>>
>> If I take the sort out entirely, the records do display in the order
>> they are listed in the table, so I know that the sort is having SOME
>> effect. Just the wrong one.
>>
>> Any ideas or is there something I've missed here?
>> _______________________________________________
>> webobjects-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.