Bug 27168: Sort most popular by number of issues desc
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 Dec 2020 15:27:41 +0000 (16:27 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Jan 2021 12:30:01 +0000 (13:30 +0100)
It seems that there is a weird behavior when the title is used as a
second sort

Test plan:
Turn on OpacTopissue
Make sure the table always displays entries sorted by number of issues
desc

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-topissues.tt

index 5ae8114..14f94bf 100644 (file)
     <script>
         $(function() {
             $("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
-                "sorting": [ [2, "desc"], [0, "asc"] ],
+                "sorting": [[2, "desc"]],
                 "columnDefs": [
                     { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
                     { "type": "anti-the", "targets" : [ "anti-the" ] },