sort origins by hostname

This commit is contained in:
Oscar Krause
2025-04-16 14:52:07 +02:00
parent 6ee09a19a3
commit e9774fb016
+1 -1
View File
@@ -31,7 +31,7 @@ async function fetchOriginsWithLeases(element) {
</tr>`
table.appendChild(thead)
let tbody = document.createElement('thead');
x.forEach((o) => {
x.sort((a, b) => a.hostname.localeCompare(b.hostname)).forEach((o) => {
let row = document.createElement('tr');
row.innerHTML = `
<td><code>${o.origin_ref}</code></td>