Why? Citation items are not sorted correctly

edited February 19, 2025
Is this an error in Zotero? For the same sort lines, the sorting behavior in bibliography is correct, but it is wrong for citation section.

The same

<sort>
<key variable="language" sort="descending"/>
<key macro="issuedYear" sort="ascending" />
</sort>

in both citation and bibliography sections.

The bibliography items are sorted by language and then by year correctly. I.e. sorted in the ascending order of year within Chinese and English groups.

But the citation items are not. It only sorts into Chinese and English groups, and does not perform the <key macro="issuedYear" sort="ascending" /> .

https://s3.amazonaws.com/zotero.org/images/forums/u6410700/ftjuuy3beanpq1epkmek.jpg

I tried many times, also from new blank Word files, but still the same.

Why does this happen? What is wrong? Thanks a lot.

If it is useful to show the macro:

<macro name="issuedYear">
<choose>
<if variable="issued">
<date variable="issued" date-parts="year" form="numeric"/>
</if>
<else/>
</choose>
</macro>


Sign In or Register to comment.