diff --git a/src/pat/structure/js/views/table.js b/src/pat/structure/js/views/table.js index 2ec64ec7a0..4fbdeaefc9 100644 --- a/src/pat/structure/js/views/table.js +++ b/src/pat/structure/js/views/table.js @@ -78,11 +78,14 @@ export default BaseView.extend({ // Ignore first column and the last one (activeColumns.length + 1) // Do not show paginator, search or information, we only want column sorting const datatables_options = { - order: [0, "asc"], + // Don't apply initial ordering. + order: [], columnDefs: [ { + // The first (selection checkboxes) and last (actions) + // columns should not be sortable. orderable: false, - targets: [0, this.app.activeColumns.length + 1], + targets: [0, this.app.activeColumns.length + 2], }, ], paging: false,