fix sort images by name v2.0.0
authorMoritz Warning <moritzwarning@web.de>
Sun, 23 Feb 2020 18:31:20 +0000 (19:31 +0100)
committerMoritz Warning <moritzwarning@web.de>
Sun, 23 Feb 2020 18:31:20 +0000 (19:31 +0100)
index.js

index 6dff5683ba8f29618f0024d86e65debe0ed0d278..0cce1bd05b16701396117d0e5546d4ddb06ee1cf 100644 (file)
--- 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);