JavaScript Datatables disable last column sorting

Disable sorting on last column when using DataTables

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
  $('#example').dataTable({
    aoColumnDefs: [
      { 'bSortable': false, 'aTargets': [ -1 ] }
    ]
  });
});
</script>