From 6c1173d299445f1f64f8ef738bae7f8fd590b47b Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Fri, 24 Oct 2025 12:21:30 +1000 Subject: [PATCH 1/2] DOC-3307: Remove sortedRevisions from v8 Revision History demo. --- modules/ROOT/examples/live-demos/revisionhistory/index.html | 2 +- modules/ROOT/examples/live-demos/revisionhistory/index.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/ROOT/examples/live-demos/revisionhistory/index.html b/modules/ROOT/examples/live-demos/revisionhistory/index.html index 90f298739e..71bfe773e3 100644 --- a/modules/ROOT/examples/live-demos/revisionhistory/index.html +++ b/modules/ROOT/examples/live-demos/revisionhistory/index.html @@ -33,7 +33,7 @@

A simple table to play with

Got questions or need help?

diff --git a/modules/ROOT/examples/live-demos/revisionhistory/index.js b/modules/ROOT/examples/live-demos/revisionhistory/index.js index 2a7fcff4ce..42f1d4eed5 100644 --- a/modules/ROOT/examples/live-demos/revisionhistory/index.js +++ b/modules/ROOT/examples/live-demos/revisionhistory/index.js @@ -8,7 +8,7 @@ const revisions = [ createdAt: '2023-11-24T22:26:21.578Z', author: { id: 'james-wilson', - name: 'A Tiny Husky', + name: 'James Wilson', avatar: 'https://sneak-preview.tiny.cloud/demouserdirectory/images/employee_james-wilson_128_52f19412.jpg', }, content: ` @@ -139,9 +139,7 @@ const revisions = [ const revisionhistory_fetch = () => new Promise((resolve) => { setTimeout(() => { - const sortedRevisions = revisions - .sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? 1 : -1); - resolve(sortedRevisions); + resolve(revisions); }, fakeDelay); }); From a6738fd65fd0094532e4974e658c47cd189f4587 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Mon, 27 Oct 2025 08:53:21 +1000 Subject: [PATCH 2/2] Update modules/ROOT/examples/live-demos/revisionhistory/index.js Co-authored-by: Andrew Herron --- modules/ROOT/examples/live-demos/revisionhistory/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/examples/live-demos/revisionhistory/index.js b/modules/ROOT/examples/live-demos/revisionhistory/index.js index 42f1d4eed5..cea41b581b 100644 --- a/modules/ROOT/examples/live-demos/revisionhistory/index.js +++ b/modules/ROOT/examples/live-demos/revisionhistory/index.js @@ -139,7 +139,9 @@ const revisions = [ const revisionhistory_fetch = () => new Promise((resolve) => { setTimeout(() => { - resolve(revisions); + const sortedRevisions = revisions + .sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? -1 : 1); + resolve(sortedRevisions); }, fakeDelay); });