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

sort orderings


  • Subject: sort orderings
  • From: John Spicer <email@hidden>
  • Date: Thu, 29 Apr 2004 08:31:41 -0500

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.


  • Follow-Ups:
    • Re: sort orderings
      • From: George Domurot <email@hidden>
    • Re: sort orderings
      • From: Francis Labrie <email@hidden>
  • Prev by Date: Re: WebObjects for Dummies
  • Next by Date: Re: sort orderings
  • Previous by thread: Re: WebObjects for Dummies
  • Next by thread: Re: sort orderings
  • Index(es):
    • Date
    • Thread