From 438cabc4781e00948186276eea2163cae8c3ee37 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sun, 23 Feb 2020 19:31:20 +0100 Subject: [PATCH] fix sort images by name --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2