Hi Paul / Ray, I'm not doing any real display of the data, The WO site is purely a provider for a basic (Prototype) web-service and just returns the entity objects in JSON. What I want to do is a descending sort on the PK so only the latest batch of objects get returned.
I know I could have a 'creation' stamp or something like that, but the 'id' get returned as part of the JSON representation and is used to marry up with CoreData on the iOS platforms. I'm using RESTKit and this is the recommended approach. Since the web-service is responsible for creating the Entity object initially, I want to return the last '25' or so entities in a batch and the simplest way (considering this is only a prototype), is to return the batch of highest 'id's. Rich On 15/03/2012, at 3:57 PM, Paul Yu wrote: > Why are you sorting on id column? My patterns is to use a displaySequence > column. > > -- > Paul Yu > Sent with Sparrow > > On Wednesday, March 14, 2012 at 10:33 PM, Rich wrote: > >> Hi guys, >> >> I can't seem to find a way to do a sort order based on the Entity objects >> Primary Key in an ERXRestFetchSpecification (the defaultSortOrdering >> specifier) >> >> I seem to be able to sort by any of the Attributes/Properties but not the PK >> (which I've called 'id') - Am I missing something glaringly obvious >> (probably) >> >> Cheers, >> Rich >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com >> >> This email sent to [email protected] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
