[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