Stammvertreter-Auswahl als A–Z sortiertes Dropdown

Im Vertretungs-Dialog ersetzt ein Dropdown die Kachel-Auswahl; Sidebar- und Admin-Liste ebenfalls nach Name sortiert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Christian Heubaum
2026-10-07 00:01:12 +02:00
parent bb9186d759
commit 2bcf6095ab
2 changed files with 13 additions and 17 deletions

View File

@@ -471,7 +471,7 @@ function switchAdminTab(tab) {
let _svAdminPhotoB64 = null;
function renderSvList() {
const list = loadStammvertreter();
const list = loadStammvertreter().sort((a, b) => (a.name || '').localeCompare(b.name || '', 'de', { sensitivity: 'base' }));
const container = document.getElementById('admin-sv-list');
if (!list.length) {
container.innerHTML = `<div style="color:var(--muted);font-size:0.88rem;padding:8px 0;">Noch keine Stammvertreter gespeichert.</div>`;