sort annotations

This commit is contained in:
j 2024-10-13 17:06:15 +01:00
commit c69ca372ee
2 changed files with 31 additions and 0 deletions

View file

@ -129,6 +129,7 @@ async function loadData(id, args) {
<span class="icon">${icon.down}</span>
${layerData.title}
</h3>`)
data.layers[layer] = sortBy(data.layers[layer], ["+in", "+created"])
data.layers[layer].forEach(annotation => {
if (pandora.url) {
annotation.value = annotation.value.replace(