From edf5467469af22c56f2cfc0fed533d19c8da1faa Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 21 Aug 2013 10:27:08 +0200 Subject: [PATCH] Bug 3134: (follow-up) improve ID and peport name sorting on saved reports page The sort for ID is alpha instead of numerical, same for the report names. To test: create id=1, name=Report 1 create id=2, name=Report 2 create id=10, name=Report 10 create id=11, name=Report 11 Sorting by id: without this patch 1, 10, 11, 2 with this patch: 1, 2, 10, 11 Sorting by name: without this patch: Report 1, Report 10, Report 11, Report 2 with this patch: Report 1, Report 2, Report 10, Report 11 Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- .../prog/en/modules/reports/guided_reports_start.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index c16013e181..2ac91d64f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -73,7 +73,8 @@ $(document).ready(function(){ 'aaSorting': [[ 1, "asc" ]], 'aoColumnDefs': [ { 'bSortable': false, 'bSearchable':false, 'aTargets': [0, -1, -2, -3, -4] }, - { 'bSearchable': false, 'aTargets': [3, 4] } + { 'bSearchable': false, 'aTargets': [3, 4] }, + { "aTargets": [ 1, 2 ], "sType": "natural" } ], 'oLanguage': { 'sZeroRecords': _("No matching reports found") -- 2.39.5