diff --git a/resources/views/presisi/statistik/pangan.blade.php b/resources/views/presisi/statistik/pangan.blade.php index 421402ad..a790d8b5 100644 --- a/resources/views/presisi/statistik/pangan.blade.php +++ b/resources/views/presisi/statistik/pangan.blade.php @@ -325,7 +325,10 @@ function exportToExcel() { processing: true, serverSide: true, autoWidth: false, - ordering: false, + ordering: true, + order: [ + [2, 'desc'] + ], searching: false, deferLoading: 0, paging: false, @@ -376,7 +379,8 @@ className: 'dt-body-right', data: null, render: function (data, type, row, meta) { return meta.row + 1; - } + }, + orderable: false, }, { data: function (data) { const nilai = data.attributes?.nilai || data.id || ''; @@ -397,6 +401,7 @@ className: 'dt-body-right', return nilai; }, + orderable: false, }, { data: function (data) { const nilai = data.attributes?.nilai || data.id || ''; @@ -413,6 +418,8 @@ className: 'dt-body-right', return jumlah; }, + orderable: true, + name: 'jumlah', }] });