From 9ca02a2ee8b84bfe16726b3b8c15794c559b0e2a Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Tue, 30 Jan 2018 16:01:59 +0100 Subject: [PATCH] B #1669: Accounting tables not ordered by date correctly (#1697) --- src/sunstone/public/app/utils/accounting.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/app/utils/accounting.js b/src/sunstone/public/app/utils/accounting.js index 6a282cb68e..82c690acc3 100644 --- a/src/sunstone/public/app/utils/accounting.js +++ b/src/sunstone/public/app/utils/accounting.js @@ -723,7 +723,8 @@ define(function(require) { "bSortClasses" : false, "bDeferRender": true, "aoColumnDefs": [ - { "bSortable": false, "aTargets": ['_all'] }, + { "sType": "date", "aTargets": [ 0 ] }, + { "bSortable": true, "aTargets": [ 0 ] } ] }); @@ -731,7 +732,8 @@ define(function(require) { "bSortClasses" : false, "bDeferRender": true, "aoColumnDefs": [ - { "bSortable": false, "aTargets": ['_all'] }, + { "sType": "date", "aTargets": [ 0 ] }, + { "bSortable": true, "aTargets": [ 0 ] } ] }); @@ -739,7 +741,8 @@ define(function(require) { "bSortClasses" : false, "bDeferRender": true, "aoColumnDefs": [ - { "bSortable": false, "aTargets": ['_all'] }, + { "sType": "date", "aTargets": [ 0 ] }, + { "bSortable": true, "aTargets": [ 0 ] } ] });