fix version sorting

This commit is contained in:
marlon-erler
2024-07-11 20:53:53 +02:00
parent fc0716658c
commit cf0d327110
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -682,7 +682,7 @@
getSortedContents = (messageObject) => {
const contents = Object.values(messageObject.contentVersions);
contents.sort(
(a, b) => a.isoDateVersionCreated > b.isoDateVersionCreated ? 0 : 1
(a, b) => a.isoDateVersionCreated > b.isoDateVersionCreated ? -1 : 1
);
return contents;
};