26.373
Bearbeitungen
(+ Formular-Eintragungsfehler abfangen mehrere gleiche Straßen-Eintragungen) |
(+ Hausnummer-Sortierung) |
||
| Zeile 193: | Zeile 193: | ||
else | else | ||
hl = str.splitAndStrip(hl, ";") -- Liste in table umwandeln | hl = str.splitAndStrip(hl, ";") -- Liste in table umwandeln | ||
table.sort(hl, | |||
function (a, b) | |||
return (tonumber(string.match(a, "%d*")) or 999) < | |||
(tonumber(string.match(b, "%d*")) or 999) | |||
end) | |||
for _, h in ipairs(hl) do -- Hausnummern durchitereieren | for _, h in ipairs(hl) do -- Hausnummern durchitereieren | ||
if h == "" then -- leere Hausnummer | if h == "" then -- leere Hausnummer | ||