From f2639991840aba1e10d1a7a9387a2c0cfab85f06 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 5 Jun 2020 09:10:36 +0300 Subject: [PATCH] make legacy the last category --- html_resources/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html_resources/selector.js b/html_resources/selector.js index 91c7240..6370a3b 100644 --- a/html_resources/selector.js +++ b/html_resources/selector.js @@ -138,7 +138,7 @@ function createCategories(){ } let map = ret.map((a,i)=>({name:a,value:ns[i]})) - return map.sort((a,b)=>(a.value > b.value?-1:a.value < b.value ? 1:0)) + return map.sort((a,b)=>(a.name==="legacy"?2:a.value > b.value?-1:a.value < b.value ? 1:0)) })(); for(let cat of CAT_NAMES){