zotero / zoterobib

ZoteroBib is a free online bibliography generator from the makers of Zotero
https://zbib.org
Other
70 stars 19 forks source link

Consider reordering of citations #167

Closed flachware closed 2 years ago

flachware commented 6 years ago

@dstillman I know we discussed this already, but there are quite some CSL styles that do not use alphabetical order but the order of appearance – I do think we should give the user a way to reorder the citations in the bibliography (e.g. via a sortable component), otherwise working with these styles would just be less fun.

dstillman commented 6 years ago

I was assuming we wouldn't worry about this, since I'm not sure how widely the people who will want to use this will be using IEEE or other styles that depend on the order, but I guess it's pretty easy to do a drag-and-drop sortable list these days, so maybe there's no reason not to.

All items would have an initial numeric index based on the insertion order. Items would still be sorted by citeproc-js, so alphabetical/etc. styles wouldn't use the order and others would. The former (which I think is just those with <cs:sort> in <cs:bibliography>) wouldn't allow dragging. The latter would, and reordering them would simply update the state and re-render via citeproc-js in a nice Reactive way.

claudia-lat commented 2 years ago

Any happy news on this? It would be great if the order of the appearance was the one of insertion. Each user could insert references from the latest to the oldest (or viceversa). Just to have a temporal ordered list :)

dstillman commented 2 years ago

@claudia-lat: No updates, but to be clear, if we did this, it would be limited to numeric/footnote styles. Other styles would always be sorted by the order defined in the style (e.g., alphabetical). It's possible for styles to sort by publication date, but I'm not sure if any existing styles do.

tnajdek commented 2 years ago

Done, will be part of 2.1.0 release.