couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Stanford <cl...@may.be>
Subject Re: Custom Collation
Date Sun, 03 Sep 2017 09:05:49 GMT
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               Swansea: +44 1792 469666
Spain:     +34  603 777 666               Estonia: +372  5308 9666
UK Mobile: +44 7973 616 666


Mime
View raw message