diff --git a/frappe/public/js/frappe/form/footer/base_timeline.js b/frappe/public/js/frappe/form/footer/base_timeline.js index 0e983cb66b..fa429f52d4 100644 --- a/frappe/public/js/frappe/form/footer/base_timeline.js +++ b/frappe/public/js/frappe/form/footer/base_timeline.js @@ -43,11 +43,11 @@ class BaseTimeline { let response = this.prepare_timeline_contents(); if (response instanceof Promise) { response.then(() => { - this.timeline_items.sort((item1, item2) => new Date(item1.creation) - new Date(item2.creation)); + this.timeline_items.sort((item1, item2) => new Date(item2.creation) - new Date(item1.creation)); this.timeline_items.forEach(this.add_timeline_item.bind(this)); }); } else { - this.timeline_items.sort((item1, item2) => new Date(item1.creation) - new Date(item2.creation)); + this.timeline_items.sort((item1, item2) => new Date(item2.creation) - new Date(item1.creation)); this.timeline_items.forEach(this.add_timeline_item.bind(this)); } }