order mutliple references with same authr and year

I'm using Zotero 2.1.1 and the plugin for Word 2007
when I enter two citations with the same author and same year, they don't appear at the correct chronologicaly order (by month)

How can I modify it in the style ?
  • which style? That behavior isn't desirable for most styles, so we usually sort by year and then by title, but you can certainly sort by the complete date.
    (specifically, you want to set the second sort parameter in the
    <sort> section from something like <key macro="year-date"/> to <key variable="issued"/> http://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step )
  • It's Elsevier's Harvard Style (with titles)

    in fact the sort section is wriiten
    <sort>
    <key macro="issued"/>
    <key macro="author"/>
    </sort>
    Do I have to change key macro to key variable
  • In fact I have the same probleme but this time for two citation having same author, date, publication, volume, and number but conséctuive number of page

    for exemple

    Alin, 2001, Biochem, Vol 13, N 10, p 10-20
    Alin, 2001, Biochem, Vol 13, N 10, p 21-25

    when I insert citation, they didn't appear in the correct order

    it writes Alin 2001a, 2001b for
    Alin, 2001b, Biochem, Vol 13, N 10, p 10-20
    Alin, 2001a, Biochem, Vol 13, N 10, p 21-25
  • If the macro prints only the year, then the sort key with macro= will only include the year. If it is set with variable=, the key will include all elements of the date. So yes.
  • but that sort macro is almost certainly for the citation, not for the bibliography. Look for the other one, further down.
  • I think the following is the relevant section for the bibliography

    <bibliography hanging-indent="true" entry-spacing="0" line-spacing="1">
    <sort>
    <key macro="author"/>
    <key macro="issued" sort="ascending"/>
    </sort>
    <layout>
    <group suffix=".">
    <text macro="author" suffix=","/>
    <text macro="issued" prefix=" " suffix=". "/>
    <group>
    <text macro="title"/>
    <text macro="container"/>
    </group>
    <text macro="locators"/>
    </group>
    <text macro="access" prefix=". "/>
    </layout>
    </bibliography>

    I think that the biblography is sorted by the full date and in an assending way, if I understood correctly.
    How can I ask to sort also by the number of page if full dates are same?
  • edited December 7, 2011
    You could try adding
    <key variable="page"/> as a third search parameter.
    You should use key variable="issued" not key macro="issued".
  • would you propose how to add the paramater to sort (when dates are the same) by page's number

    Thank you for your help
  • edit - sorrow, see above, got swallowed by the html.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.