tinyfilemanager icon indicating copy to clipboard operation
tinyfilemanager copied to clipboard

Sorted by default date possible ?

Open Alexofhiswalnut opened this issue 6 years ago • 2 comments

hello, is there a solution for sorted by date (from most recent to oldest) by default? Thank you.

Alexofhiswalnut avatar Apr 06 '20 14:04 Alexofhiswalnut

Find this line 3648 with content: mainTable = $('#main-table').DataTable({"paging": false, "info": false, "columnDefs": [{"targets": _targets, "orderable": false}] and add to the end: , "order": [[ 4, "desc" ]] so the resulting line is: mainTable = $('#main-table').DataTable({"paging": false, "info": false, "columnDefs": [{"targets": _targets, "orderable": false}], "order": [[ 4, "desc" ]]

NOTE: If the checkbox column is not shown (readonly-user) - use: [[ 3, "desc" ]]

EV-soft avatar Apr 06 '20 17:04 EV-soft

mainTable = $('#main-table').DataTable({"paging": false, "info": false, "columnDefs": [{"targets": _targets, "orderable": false}], "order": [[ 2, "desc" ]]

it's ok with it !

Alexofhiswalnut avatar Apr 06 '20 20:04 Alexofhiswalnut