Skip to content

Commit b0ef6ac

Browse files
DOC-3307: Fix order for sortedRevisions from v8 Revision History demo. (#3894)
* DOC-3307: Remove sortedRevisions from v8 Revision History demo. * Update modules/ROOT/examples/live-demos/revisionhistory/index.js Co-authored-by: Andrew Herron <[email protected]> --------- Co-authored-by: Andrew Herron <[email protected]>
1 parent 2512773 commit b0ef6ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/ROOT/examples/live-demos/revisionhistory/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2>A simple table to play with</h2>
3333
<h2>Got questions or need help?</h2>
3434

3535
<ul>
36-
<li>Our <a class="mceNonEditable" href="https://www.tiny.cloud/docs/tinymce/8/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
36+
<li>Our <a class="mceNonEditable" href="https://www.tiny.cloud/docs/tinymce/latest/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
3737
<li>Have a specific question? Try the <a href="https://stackoverflow.com/questions/tagged/tinymce" target="_blank" rel="noopener"><code>tinymce</code> tag at Stack Overflow</a>.</li>
3838
<li>We also offer enterprise grade support as part of <a href="https://www.tiny.cloud/pricing">TinyMCE premium subscriptions</a>.</li>
3939
</ul>

modules/ROOT/examples/live-demos/revisionhistory/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const revisions = [
88
createdAt: '2023-11-24T22:26:21.578Z',
99
author: {
1010
id: 'james-wilson',
11-
name: 'A Tiny Husky',
11+
name: 'James Wilson',
1212
avatar: 'https://sneak-preview.tiny.cloud/demouserdirectory/images/employee_james-wilson_128_52f19412.jpg',
1313
},
1414
content: `
@@ -140,7 +140,7 @@ const revisions = [
140140
const revisionhistory_fetch = () => new Promise((resolve) => {
141141
setTimeout(() => {
142142
const sortedRevisions = revisions
143-
.sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? 1 : -1);
143+
.sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? -1 : 1);
144144
resolve(sortedRevisions);
145145
}, fakeDelay);
146146
});

0 commit comments

Comments
 (0)