Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Arquero version 7.1.0 now includes a collate helper function to support custom string orders. You can use it in your example above like so:

aq.fromCSV(csv, { header: false }).orderby(aq.collate('col1', 'tr-TR')).toCSV()

The collate method accepts either arguments compatible with the Intl.Collator constructor (such as a locale string) or a two-argument custom comparator function.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@agladysh
Comment options

Answer selected by agladysh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants