summaryrefslogtreecommitdiff
path: root/scraper/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-28 16:52:54 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-28 16:52:54 +0100
commit36a44fe10d2501312d16aa5f70b31fd3585fb996 (patch)
tree53570382aff7d11985a948b700c54c7c96129957 /scraper/client
parentd13d1cdfa51a481d318fb37cd02ba93915bdc3d1 (diff)
add pdf length search
Diffstat (limited to 'scraper/client')
-rw-r--r--scraper/client/paper/citationList.component.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scraper/client/paper/citationList.component.js b/scraper/client/paper/citationList.component.js
index 1443b24c..ca4d2482 100644
--- a/scraper/client/paper/citationList.component.js
+++ b/scraper/client/paper/citationList.component.js
@@ -28,7 +28,7 @@ class CitationList extends Component {
citation.pdf.length,
citation
])
- .sort((a,b) => (b[2] - a[2] || b[1] - a[1] || (a[0].localeCompare(b[0]))))
+ .sort((a,b) => (b[1] - a[1] || b[2] - a[2] || (a[0].localeCompare(b[0]))))
.map((pair, i) => {
const [ title, uses_dataset, citation ] = pair
let cite = { ...citation }