Skip to content

Conversation

@Drodt
Copy link
Contributor

@Drodt Drodt commented Nov 14, 2025

This is not part of the CSL spec but is part of the test suite. It also makes sense.

If you have two items and sort with a name macro with names-use-first="1" then you get, e.g., "Smith" and "Smith et al." if you render the "et al.". However, then the second is always greater than the first, whereas you want them to be equal and further sort keys to decide which is first.

Makes 1 test pass.

Copy link
Contributor

@PgBiel PgBiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

);
}
} else if has_et_al {
} else if ctx.instance.sorting.is_none() && has_et_al {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other checks for has_et_al above. Are we sure we only have to change this step?

I suppose that there could be a bit of a debate on whether changing the sort behavior too much would be welcome as well. In principle, it seems like the user would find it unexpected for sort to not sort based on the final text, which includes et al. But at least your argument seems reasonable.

Overall, maybe my question is how much do we want to modify the sort to ignore et al.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants