projects
/
web
/
firmware-selector-openwrt-org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f36a7cb
)
fix sort images by name
v2.0.0
author
Moritz Warning
<moritzwarning@web.de>
Sun, 23 Feb 2020 18:31:20 +0000
(19:31 +0100)
committer
Moritz Warning
<moritzwarning@web.de>
Sun, 23 Feb 2020 18:31:20 +0000
(19:31 +0100)
index.js
patch
|
blob
|
history
diff --git
a/index.js
b/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);