forked from oscar.krause/fastapi-dls
sort origins by hostname
This commit is contained in:
parent
49279b6b66
commit
ca96ae08a7
@ -31,7 +31,7 @@ async function fetchOriginsWithLeases(element) {
|
|||||||
</tr>`
|
</tr>`
|
||||||
table.appendChild(thead)
|
table.appendChild(thead)
|
||||||
let tbody = document.createElement('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');
|
let row = document.createElement('tr');
|
||||||
row.innerHTML = `
|
row.innerHTML = `
|
||||||
<td><code>${o.origin_ref}</code></td>
|
<td><code>${o.origin_ref}</code></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user