I can't seem to change the direction of the sorting.
Here is my view code:
[view setMapBlock: MAPBLOCK({
if ([doc[@"type"] isEqualToString:kJobDocType]) {
NSString *value = ([NSString stringWithFormat:@"%@ %@ %@ %@ %@",
doc[@"jobNumber"], doc[@"workingTitle"], doc[@"clientName"],
doc[@"product"], doc[@"productionCompany"]]);
emit(doc[@"created_at"], value);
}
}) reduceBlock:nil version: @"1"];
Any my query code:
self.dataSource.query.descending = YES;
self.dataSource.query = [Job queryJobsInDatabase:database].asLiveQuery;
Changing self.dataSource.query.descending between YES and NO seems to have
no effect. (I am using CBLTableSource here.)
Is there something I am missing?
Todd
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/f06ca75a-e392-4b1c-b1e8-ebd61400538b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.