citation-file-format / cff-initializer-javascript

Web form to initialize CITATION.cff files.
https://citation-file-format.github.io/cff-initializer-javascript/
Apache License 2.0
21 stars 8 forks source link

.cff entries are ordered by order of addition, not using a standard order #861

Open JaroCamphuijsen opened 1 year ago

JaroCamphuijsen commented 1 year ago

When generating the .cff file through the web app, the fields (at least the author sub-fields) are sorted by the order of addition. That means if I first add institution, and then the family name, I will get the author fields ordered in that way on my generated .cff file as well.

authors:
  - given-names: Someone
    affiliation: Awesome University
    family-names: Smith
    email: someone.smith@awesome-u.nl
    orcid: 'https://orcid.org/0000-0000-0000-0000'
  - given-names: Jaro
    family-names: Camphuijsen
    email: j.camphuijsen@esciencecenter.nl
    affiliation: Netherlands eScience Center
    orcid: 'https://orcid.org/0000-0002-8928-7831'

Instead it would be more desirable to have a standard order of these fields, because having various authors with different sub-field ordering makes the file unnecessarily chaotic.

authors:
  - given-names: Someone
    family-names: Smith
    email: someone.smith@awesome-u.nl
    affiliation: Awesome University
    orcid: 'https://orcid.org/0000-0000-0000-0000'
  - given-names: Jaro
    family-names: Camphuijsen
    email: j.camphuijsen@esciencecenter.nl
    affiliation: Netherlands eScience Center
    orcid: 'https://orcid.org/0000-0002-8928-7831'
abelsiqueira commented 1 year ago

Thanks for creating the issue

JaroCamphuijsen commented 1 year ago

I tried again, and the issue is hard to reproduce, right now, they are actually ordered in appearance in the form, but something made my first entry shuffle them around.