fix: Lagen im Netzwerk-Modal sortiert — Live alphabetisch, dann Analyse alphabetisch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -236,6 +236,13 @@ App.openNetworkModal = async function() {
|
||||
// Lagen laden
|
||||
try {
|
||||
var incidents = await API.listIncidents();
|
||||
// Sortierung: zuerst Live (adhoc) alphabetisch, dann Analyse (research) alphabetisch
|
||||
incidents.sort(function(a, b) {
|
||||
var typeA = (a.type === 'research') ? 1 : 0;
|
||||
var typeB = (b.type === 'research') ? 1 : 0;
|
||||
if (typeA !== typeB) return typeA - typeB;
|
||||
return (a.title || '').localeCompare(b.title || '', 'de');
|
||||
});
|
||||
if (list) {
|
||||
list.innerHTML = incidents.map(function(inc) {
|
||||
var typeLabel = inc.type === 'research' ? 'Analyse' : 'Live';
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren