@@ -, +, @@ - Check some items out - Modify the checkout and due dates, like: 2018-10-22 2018-01-23 2018-05-27 - Sort by checkout date, then due date. The sort should be correct for --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -310,7 +310,14 @@ $(document).ready(function() { return oObj.homebranch.escapeHtml(); } }, - { "mDataProp": "issuedate_formatted" }, + { + "mDataProp": "issuedate", + "bVisible": false, + }, + { + "iDataSort": 9, // Sort on hidden unformatted issuedate column + "mDataProp": "issuedate_formatted", + }, { "mDataProp": function ( oObj ) { return oObj.branchname.escapeHtml(); @@ -562,7 +569,7 @@ $(document).ready(function() { "bVisible": false, }, { - "iDataSort": 1, // Sort on hidden unformatted date due column + "iDataSort": 0, // Sort on hidden unformatted date due column "mDataProp": function( oObj ) { var today = new Date(); var due = new Date( oObj.date_due ); @@ -646,7 +653,14 @@ $(document).ready(function() { return ( oObj.location ? oObj.location.escapeHtml() : '' ); } }, - { "mDataProp": "issuedate_formatted" }, + { + "mDataProp": "issuedate", + "bVisible": false, + }, + { + "iDataSort": 7, // Sort on hidden unformatted issuedate column + "mDataProp": "issuedate_formatted", + }, { "mDataProp": function ( oObj ) { return oObj.branchname.escapeHtml(); --