Hello, all,
This is my first post.
I'd like to use the ORDER clause on strings and have them be ordered
as they would be by a java Collator. (What counts is that lower and
upper cases be honored but grouped together by first letter rather than
appearing as all upper case instances of all letters followed by all
lower case instances of all letters. I'm also interested in supporting
multiple languages.) I understand that this is not possible in instantdb
by default.
The question is: can I obtain the desired effect by using a table column
that contains CollationKeys and use the ORDER clause on the key column?
The idea is to use the toByteArray() method of CollationKey to get a
plain form of the keys and then put the bytes into a column of type
BINARY in the table and use ORDER on that column. Presto?
Thanks,
Dick
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|