Miguel, What type of criteria are you trying to sort by? Here's a code snippet if you wanted to sort a relationship. In this example there's a relationship between Cafe <--->> Menu public NSArray orderedMenus() { EOSortOrdering sortOrdering = new EOSortOrdering("ordering", EOSortOrdering.Compare
Create an NSComparator to do this. That gives you the full power of
Java to do sorting. I usually make them a public inner class of the
EO I am sorting. Then use the NSArray method
sortedArrayUsingComparator or the NSMutableArray method
sortUsingComparator to sort using an instance of yo
Hi!
This is probably a simple question, but I'm not finding an
answer... how can I sort objects in memory using my own criteria? The
alphabetic ordering is not enough... :)
Yours
Miguel Arroz
"GUERRA E' PAZ
LIBERDADE E' ESCRAVIDAO
IGNORANCIA E' FORCA" -- 1984