Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Manual Bibliography Sorting #9717

Open
yakatz opened this issue May 3, 2024 · 4 comments
Open

Support for Manual Bibliography Sorting #9717

yakatz opened this issue May 3, 2024 · 4 comments

Comments

@yakatz
Copy link

yakatz commented May 3, 2024

I am trying to have two citations show up at the very end of my bibliography (right now they are the first two).

If I understand this right, it looks like presort and sortkey keys are filtered out of the BIB -> CSL conversion:

transformKey _ _ "presort" = []

Can those be supported? Is there any other way to force them to the end without displaying some arbitrary author name?

@jgm
Copy link
Owner

jgm commented May 3, 2024

There's nothing in CSL corresponding to presort, as far as I know, and CSL doesn't officially allow custom fields.

A CSL style can define its own sort keys, e.g. you could sort on the 'note' field and then author name, and use the 'note' field instead of 'presort' -- assuming you're not doing something else with 'note'.

@yakatz
Copy link
Author

yakatz commented May 3, 2024

Got it.

CSL hasn't had any activity on Github in more than a year, and no activity on the proposed version 1.1 in more than two years, so I am not holding my breath, but I opened an issue there: citation-style-language/schema#439

@bwiernik
Copy link

bwiernik commented May 3, 2024

Can you give some context as to why you want to do this? Whats the specific use case for placing these two items at the end?

@yakatz
Copy link
Author

yakatz commented May 3, 2024

I have two major uses for this:

  1. I have a specific author who isn't alphabetized correctly for my specific need. The need is too specific to try to adjust the automatic sorting.
  2. I have a few "citations" which need to be included, but aren't really proper citations (more likely should be footnotes, but I can't use them). These citations don't have authors at all and (in this CSL anyway) a blank author is sorted at the very beginning of the list instead of the end. I would like a way to force it to the end.

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

No branches or pull requests

3 participants