From 8fc942caf96daf02a81af117752eeb7539cc9b6e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 21 Aug 2013 10:27:08 +0200 Subject: [PATCH] Bug 3134: ID and Report name columns are not well sorted. 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 --- .../intranet-tmpl/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 c16013e..2ac91d6 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") -- 1.7.10.4