From 1c36a21e0c67cc0106e574c073ec54a0973e1f90 Mon Sep 17 00:00:00 2001 From: Coder Date: Wed, 26 Aug 2026 19:57:55 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D1=82=D0=BE=D1=80=D0=B8=D1=8F:=20?= =?UTF-8?q?=D1=81=D0=BE=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=BF=D0=BF=20=D0=BF=D0=BE=20=D0=B4=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=20=E2=80=94=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=84=D0=BE=D1=82=D0=BE=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B2=D0=B2=D0=B5=D1=80=D1=85=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/app.js | 14 ++++++++------ public/index.html | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/public/app.js b/public/app.js index 9f0aa49..6f553e6 100644 --- a/public/app.js +++ b/public/app.js @@ -698,12 +698,14 @@ function renderHistory() { empty.hidden = historyVersions.length > 0; const childrenMap = buildChildrenMap(historyVersions); - const roots = historyVersions.filter( - (version) => - version.kind === "original" || - !version.parentId || - !childrenMap.has(version.parentId) - ); + const roots = historyVersions + .filter( + (version) => + version.kind === "original" || + !version.parentId || + !childrenMap.has(version.parentId) + ) + .sort((a, b) => String(b.createdAt || "").localeCompare(String(a.createdAt || ""))); rebuildReferenceSelect(); diff --git a/public/index.html b/public/index.html index a4f77d0..f5359aa 100644 --- a/public/index.html +++ b/public/index.html @@ -15,7 +15,7 @@ rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='16' fill='%23202321'/%3E%3Ctext x='32' y='45' font-size='38' font-weight='bold' text-anchor='middle' fill='%23ffffff' font-family='sans-serif'%3E%D0%9A%3C/text%3E%3C/svg%3E" > - +
@@ -294,6 +294,6 @@ - +