From: Moritz Warning Date: Sun, 23 Feb 2020 18:31:20 +0000 (+0100) Subject: fix sort images by name X-Git-Tag: v2.0.0^0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=438cabc4781e00948186276eea2163cae8c3ee37;p=web%2Ffirmware-selector-openwrt-org.git fix sort images by name --- diff --git a/index.js b/index.js index 6dff568..0cce1bd 100644 --- a/index.js +++ b/index.js @@ -331,7 +331,7 @@ function updateImages(version, commit, model, url, mobj, is_custom) { $('image-release').innerText = version; $('image-commit').innerText = commit; - images.sort(); + images.sort((a, b) => a.name.localeCompare(b.name)); for (var i in images) { addLink(images[i].type, images[i].name);