That won’t quite work, because a string will still sort after its substrings, 
e.g. “foobar" still sorts after “foo”, which it shouldn’t in a descending sort.

I think you can fix that by appending a very high character to every string 
(maybe a “~” in your ASCII-alphabet-only example, or more realistically a very 
high Unicode character like \uFFFE.)

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/9C470DAC-A935-478B-BB89-135CED298024%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to