        const dateB = new Date(b.timestamp);
            return dateB - dateA;
        });

        list.innerHTML = sortedHistory
            .map(
                item => `
            <div class="mindmap-item fade-in-section" onclick="handleMindmapClick(event, ${item.id})">
                <div class="mindmap-info">
                    <div class="mindmap-title">${escapeHtml(item.topic)}</div>
                    <div class="mindmap-date">${formatDate(item.timestamp)}</div>
                </div>
       