Closed david-raine-mns closed 3 years ago
Yes, there is a way, albeit undocumented (sorry about that :) ). You need to create your own tokenizer/keyer using the exported factory function thusly:
import {createKeyer} from 'talisman/keyers/fingerprint';
// Or if you want to create a fingerprint tokenizer
import {createTokenizer} from 'talisman/tokenizers/fingerprint';
const fingerprint = createKeyer({sort: true});
The full list of options can be found here if you need.
That is perfect and works a treat. Many thanks for this wonderful library.
Is there any way to use fingerprint without the final alphabetic sort phase? It looks like it uses a tokenizer that appears to have a "sort: true" in the options, but I can't seem to figure out how to pass that through.