01 July 2008

NSArray sorting

Don't forget the little magic in

EOSortOrdering.sortedArrayUsingKeyOrderArray( form.elements(), new NSArray( ERXS.asc( Element.ORDER_KEY ) ) );

2 comments:

Logi Helgu said...
This comment has been removed by the author.
Hugi said...

Or:

EOSortOrdering.sortedArrayUsingKeyOrderArray( array, Element.ORDER.ascs() );

Everthing that has to do with ERXKey is cool ;-)