> 62, 61, 22, 19. I'm not quite sure what's going on here - any ideas > how the order is being set here?
Aren't the rows ordered by doc._id in this case? AFAIK (key, value) pairs are ordered by key so perhaps emit(count, doc._id) might be more appropriate. I could be completely wrong here though :) U