hereisok opened a new issue #579:
URL: https://github.com/apache/couchdb-documentation/issues/579


   hi, The couchdb version I use is 3.1.0.
   
   Below is my document in the database,
   
   |_id|group_id|msg_id|
    | -- | -- | --
   H-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | H |  
   | h-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | h |  
   | b-lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | b |  
   | A-lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | A |  
    | a-lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | a |  
    | 7ewRhpLu5-567jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 7ewRhpLu5 |  
   | 7ewRHPJZN-567jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 
lEJXOvV-jqPgaMjkaqpmZsyX97_uMOtD3rsYPcABjz8= | 7ewRHPJZN
   
   I created an index: 
   ```json
   {
           "index": {
               "fields": ["group_id", "msg_id"]
           },
           "name": "msg-id-index",
           "type": "json",
           "ddoc": "_design/index_msg-id-index"
   }
   ```
   Then sort query based on msg_id. Below is the result of my query.
   
   
![image](https://user-images.githubusercontent.com/16496811/88892672-c1a55300-d277-11ea-8def-d79cb0bf5cb9.png)
   
   
   According to couchdb's 
[documentation,](https://docs.couchdb.org/en/stable/ddocs/views/collation.html#collation-specification)
 I know that the order of "H" is higher than "h", but why is the order of 
"7ewRhpLu5" higher than "7ewRHPJZN"?
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to