[SiteGen] Fix another browser bug caused by last fix

This commit is contained in:
Ducko 2021-07-02 19:43:53 +01:00 committed by Alyxia Sother
parent ae6c36373f
commit 55578d0773
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 2 additions and 2 deletions

View File

@ -462,12 +462,12 @@
sortSelectEl.oninput = () => {
switch (sortSelectEl.value) {
case 'Stars': {
cards.forEach((x) => { x.style.order = 9999999999 - parseInt(x.getAttribute('data-stars')); });
cards.forEach((x) => { x.style.order = 999 - parseInt(x.getAttribute('data-stars')); });
break;
}
case 'Last Updated': {
cards.forEach((x) => { x.style.order = 9999999999 - parseInt(x.getAttribute('data-last-updated')); });
cards.forEach((x) => { x.style.order = 3000000000 - parseInt(x.getAttribute('data-last-updated')); });
break;
}