- (void)usersCBView {
[[self.database viewNamed: @"users"] setMapBlock: MAPBLOCK({
id DocType = [doc objectForKey: @"type"];
if (DocType == (id) @"user")
emit(@[doc[@"id"], doc[@"pwd"], doc[@"usercategory"], doc[@"name"]], nil);
}) version: @"1.1"];
}
Any help is very well appreciated,
BR
Sandra
How do I tell couch base to sort by integer id? do I have to sort them manually?