diff --git a/public/js/communication.js b/public/js/communication.js index 5e7a010144..feef6c9907 100644 --- a/public/js/communication.js +++ b/public/js/communication.js @@ -19,8 +19,9 @@ erpnext.CommunicationView = Class.extend({ this.comm_list = []; $.extend(this, opts); - this.list.sort(function(a, b) { return new Date(a.modified) > new Date(b.modified) - ? -1 : 1 }) + this.list.sort(function(a, b) { return + (new Date(a.modified) > new Date(b.modified)) + ? -1 : 1; }) this.make(); }, @@ -41,7 +42,9 @@ erpnext.CommunicationView = Class.extend({ this.wrapper = $("