tweaks for releases sort order

This commit is contained in:
Daniel Micay 2019-04-29 15:50:30 -04:00
parent 5667ed8291
commit fd933b281f

View File

@ -26,10 +26,10 @@ function deviceModel(device) {
return "Pixel 2"; return "Pixel 2";
} }
if (device === "marlin") { if (device === "marlin") {
return "Pixel XL (legacy)"; return "Pixel 1 XL (legacy)";
} }
if (device === "sailfish") { if (device === "sailfish") {
return "Pixel (legacy)"; return "Pixel 1 (legacy)";
} }
return device; return device;
} }
@ -77,7 +77,7 @@ for (const channel of channels) {
const list = document.getElementById(channel); const list = document.getElementById(channel);
for (const item of list.children) { for (const item of list.children) {
if (model < item.dataset.model) { if (model > item.dataset.model) {
list.insertBefore(release, item); list.insertBefore(release, item);
return; return;
} }