diff --git a/assets/preview-table.html b/assets/preview-table.html index df43d83..11b6c1e 100644 --- a/assets/preview-table.html +++ b/assets/preview-table.html @@ -136,11 +136,11 @@

{{ .ID }}

// Convert feature properties into html function featureHtml(f) { - var p = f.properties; + var sortedPropertyKeys = Object.keys(f.properties).sort((a,b) => a.localeCompare(b)) var h = "

"; - for (var k in p) { - h += "" + k + ": " + p[k] + "
" - } + sortedPropertyKeys.forEach(k => { + h += "" + k + ": " + f.properties[k] + "
" + }) h += "

"; return h }