Sorting bibliography by order of appearance in text? (Chicago 17th ed., note w/ Ibid.)

Hi all,

Sorry if this has been asked before.. did a search but was unable to find it.

Would someone mind helping me figure out how to edit the chicago-note-bibliography-with-ibid.csl file to make it sort the contents of my bibliography by the order in which sources are used in the text?

Thanks for your help.
  • At the bottom of the style you'll see a section called "bibliography" that formats the bibliography. And the first part of that is a "sort" section. You can add another key for the variable "citation-number" above all the others and it'll sort in order the way they were cited.

    General instructions here: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
  • edited May 9, 2020
    If you to that, you probably also want to make these changes:
    1. In the line starting with "<bibliography", add second-field-align="flush"
    2. In the "bibliography" section, just below "<layout>", add <text variable="citation-number" suffix="."/>
  • edited May 9, 2020
    @bwiernik, for step 2, do you mean to add {text variable="citation-number" suffix="."/} between these two lines:

    {layout suffix="."}
    {group delimiter=". "}

    @damnation, It doesn't seem to be sorting correctly. I have another oddball requirement for this paper: the footnote numbering must reset on each page. Could that be screwing up sort by citation-number?

    Apparently can't use chevrons in this forum without another command, hence the {}s. Would you mind sharing that command? Much appreciated!
  • To show code, wrap it in <code> </code> tags.

    Yes, between those two lines. That will include the citation number in the bibliography entry.

    Sorting by citation-number will sort in the order the citations appear in your document. This has nothing to do with the footnote numbers (which are controlled by Word, not Zotero).
Sign In or Register to comment.