diff --git a/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue b/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue
index e1ba3e3625..9aa7b2c605 100644
--- a/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue
+++ b/contentcuration/contentcuration/frontend/channelEdit/views/trash/TrashModal.vue
@@ -201,7 +201,7 @@
];
},
items() {
- return sortBy(this.getContentNodeChildren(this.trashId), 'modified');
+ return sortBy(this.getContentNodeChildren(this.trashId), 'modified').reverse();
},
backLink() {
return {
@@ -225,9 +225,9 @@
},
},
created() {
- this.loadContentNodes({ parent__in: [this.rootId] }),
- this.loadAncestors({ id: this.nodeId }),
- this.loadNodes();
+ this.loadContentNodes({ parent__in: [this.rootId] });
+ this.loadAncestors({ id: this.nodeId });
+ this.loadNodes();
},
mounted() {
this.updateTabTitle(this.$store.getters.appendChannelName(this.$tr('trashModalTitle')));
@@ -246,10 +246,12 @@
this.loading = false;
return;
}
- this.loadChildren({ parent: this.trashId }).then(childrenResponse => {
- this.loading = false;
- this.more = childrenResponse.more || null;
- });
+ this.loadChildren({ parent: this.trashId, ordering: '-modified' }).then(
+ childrenResponse => {
+ this.loading = false;
+ this.more = childrenResponse.more || null;
+ }
+ );
},
moveNodes(target) {
return this.moveContentNodes({
@@ -311,7 +313,7 @@
};
-