Definition of Key Collation Order



The advice for creating document keys is to create keys that mostly increase as you insert documents. Keys are also collated by a Unicode UTF-8 collation order. As there are many code points in UTF-8, I would like to ensure that the encoding for my keys preserves this property. Hence, where is this collation order exactly defined? Other databases, for example, have their own collation order. I suspect that Couchbase is no different. (Please don’t answer that I should read the Unicode site for this answer. I’ve already been there. It is not a pragmatic resource for answering this question.) A pointer to where collation order is defined in the Community source would be acceptable.