From 5b3fccb4a66f4d3f86449a4a4a09cf2d576a670d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 10 Dec 2019 09:11:04 +0100 Subject: [PATCH] Fix TBE first --- content/multipledataset.html | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 6da8c106..a108ac9e 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -221,25 +221,20 @@ draft: false dtb.empty() sel_ref = $("#sel_ref") await doiCache.addRange(window.filt.map((x)=>x.DOI.string)) - for (const el of uniq(window.filt.map(d=>[d.code,d.method,d.DOI])).sort((a,b)=>{ - if (a[1].method.name==b[1].name) { - return 0 - } - else{ - if(a.method.name=="TBE"){ - return -1 - } - else if(b.method.name=="TBE){ - return 1 - } - } - return 0 - } + for (const el of uniq(window.filt.map(d=>[d.code,d.method,d.DOI]))) { - $("