On 03/09/17 12:01, Cliff Stanford wrote:
sort = (collation[alphabet.indexOf char.toUpperCase()] ? char for char
in word.split '').join ''emit [sort, word]
Sorry, formatting issue. The emit should have been on the next line.
Cliff.
--
Cliff Stanford
London:+44 20 0222 1666
On 03/09/17 10:45, Cliff Stanford wrote:
OK, presumably I'd need to do this in each map function? Do I need to
copy and paste the code to each function or is there any way to use
subroutines across map function?
Actually, I realised there is a fairly simple way to do this in three
extra
On 03/09/17 06:44, Joan Touzet wrote:
The official answer is that CouchDB only supports UTF-8 collation order.
Thanks. I also tried "raw" collation order but that didn't help. I was
hoping there was a CouchDB way to alter the collation.
The unofficial answer is that one or more of the
On 02/09/17 20:54, Aurélien Bénel wrote:
I am using a language where the sort order for the alphabet is:
A B D E F G H I J K L M N O P R S Š Z Ž T U V Õ Ä Ö Ü
I know this is not exactly what you are trying to do, but in similar
situations I « normalize » keys before emitting them