zotero-citationcounts icon indicating copy to clipboard operation
zotero-citationcounts copied to clipboard

Sorting column

Open ardydavari opened this issue 3 years ago • 4 comments

Hi,

I was wondering if there is a way to sort references by number of citations in zotero?

Thank you for your plugin!

ardydavari avatar Jan 11 '21 19:01 ardydavari

Oh, that would be a good idea!

I don't know. I don't know how sorting in Zotero works. If you have a pointer to another plugin that affects sorting – could you post it here?

eschnett avatar Jan 11 '21 19:01 eschnett

The data that the plugin populates is in the extra column:

Here's an example: image

The issue is that it can't really sort since it contains data of this format: 00000 Place: England PMID: 33420488 Citations (Crossref): 1 [2021-01-11]

Perhaps if a separate key-value pair "crossref citations" : integer, would work?

ardydavari avatar Jan 11 '21 20:01 ardydavari

The scite plugin adds extra columns to Zotero, which can facilitate sorting by citations.

airallergy avatar Jun 27 '21 20:06 airallergy

@eschnett the tool is working great! I want to re-up the comment about sorting. Past iterations of citation add-ons to Zotero have added leading zeros, making citation counts uniformly six digits, so that way for example, 1000 is sorted as greater than 400, rather than the leading 4 sorting as greater than the leading 1. The two numbers would just need leading zeros such that they display as 001000 and 000400. Is this do-able? Could use code to count the number of digits (N) and add leading zeros as 6 minus N.

tylerbhampton avatar Aug 31 '22 15:08 tylerbhampton