Ignore certain words when sorting
When sorting lists (in English anyway) it is common to ignore definite and indefinite articles - the, an, a.
Such an option for sorting bibliographies would be valuable in Zotero. A style guide I am working with at the moment requires this, as well as requiring that anonymous and certain other works be listed by title rather than author, so the occurrence of 'The' at the beginning of a bibliography entry is not uncommon.
One way to approach this which would
a) not require embedding a lot of l18n information in the processor and
b) give style writers plenty of flexibility
would be to add an additional attribute to either the <sort> or <key> element in CSL of ignore-leading-words.
On the down-side of course this would require a change the CSL specification
Such an option for sorting bibliographies would be valuable in Zotero. A style guide I am working with at the moment requires this, as well as requiring that anonymous and certain other works be listed by title rather than author, so the occurrence of 'The' at the beginning of a bibliography entry is not uncommon.
One way to approach this which would
a) not require embedding a lot of l18n information in the processor and
b) give style writers plenty of flexibility
would be to add an additional attribute to either the <sort> or <key> element in CSL of ignore-leading-words.
On the down-side of course this would require a change the CSL specification
Related, Frank already played around with a "skip-words" attribute to define words that shouldn't be title cased or taken into account when sorting: http://gsl-nagoya-u.net/http/pub/citeproc-js-csl.html#skip-words-attribute-to-style-options
Non-English titles stay in their common language. But that list doesn't serve for sorting - e.g. For Whom the Bells Toll should be sorted under F, not W.
Sorting is much simpler, though: (CMoS 14.67) That's the total extent of the inclusion list.
AFAIK CMoS does not talk about sorting non-English titles - so I don't know if Die Blechtrommel should be under D or under B - though foreign articles are mentioned with respect to indexes (CMoS 16.52). There, the answer is "it depends":
And if so, how would one go about doing that? I've never tinkered with CSL before, but it looks like one could create a macro for "sort-title" that strips off those words, then use it instead of "title" in this block under <bibliography>:
<sort>
<key macro="contributors-sort"/>
<key variable="title"/>
<key variable="genre"/>
<key variable="issued"/>
</sort>