I have this section of code already in place and i think it uses the domsourced method to render the control with the class .file-upload table
as a datatable.
initDataTable = function () {
services.dataTables.domSourced('.file-upload table');
};
now i want to use this code below to order the first column in desc order, how do i do that
"order": [[0, 'asc']],
Did you tried this?
$(document).ready(function() {
$('#example').DataTable( {
"order": [[ 0, "desc" ]]
} );
} );
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.