• 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
Re: sort orderings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >sort orderings (From: John Spicer <email@hidden>)
 >Re: sort orderings (From: George Domurot <email@hidden>)

  • Prev by Date: EOF & pgSQL join syntax
  • Next by Date: sort orderings
  • Previous by thread: Re: sort orderings
  • Next by thread: sort orderings
  • Index(es):
    • Date
    • Thread