diff --git a/app/static/assets/js/helper.js b/app/static/assets/js/helper.js index a8c3079..c4733b9 100644 --- a/app/static/assets/js/helper.js +++ b/app/static/assets/js/helper.js @@ -31,7 +31,7 @@ async function fetchOriginsWithLeases(element) { ` 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 = `
${o.origin_ref}