Skip to content

Commit 5deab22

Browse files
committed
DOC-3307_v7: Fix order for sortRevisions for RevisionHistory demo.
1 parent 4c7bf3a commit 5deab22

File tree

1 file changed

+1
-1
lines changed
  • modules/ROOT/examples/live-demos/revisionhistory

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const revisions = [
139139
const revisionhistory_fetch = () => new Promise((resolve) => {
140140
setTimeout(() => {
141141
const sortedRevisions = revisions
142-
.sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? 1 : -1);
142+
.sort((a, b) => new Date(a.createdAt) < new Date(b.createdAt) ? -1 : 1);
143143
resolve(sortedRevisions);
144144
}, fakeDelay);
145145
});

0 commit comments

Comments
 (0)