Remove sorting from Datatable in checkboxes

var table = $('#mytable').DataTable({
      'columnDefs': [{
         'targets': 0,
         'searchable': false,
         'orderable': false,
         'className': 'checkbox check-success'  
      }],
      'order': [[1, 'asc']]
   });
                                                                <div class="checkbox check-success">

                                                                    <label class=" mt-checkbox mt-checkbox-outline"
                                                                        for="checkbox_<?php echo $valuep['0'] ;?>">
                                                                        <input id="checkbox_<?php echo $valuep['0'] ;?>" type="checkbox" name="leads_ids" value="<?php echo $valuep['0'] ;?>" class="select_click">
                                                                        <span></span>
                                                                    </label>
                                                                    <input type="hidden" id="enable_all"
                                                                        name="enable_all" value="1">
                                                                    <input type="hidden" id="lead_contact_id_<?php echo $valuep['0'] ;?>"
                                                                        name="contact_id" value="<?php echo $valuep['0'] ;?>">

                                                                </div>
                                                                <span id="custom_controls"></span>
                                                            </td>

Whenever I click on select-all on top of table it gets back to first page.I need to select some rows in table and export it to csv but when selecting on different pages when i click on select all it gets back to page 1.