DataTables Setting: Save Table State
If your DataTables View is not sorting correctly, try deactivating this setting.
By default, the DataTables Extension stores information like pagination position, display length, filtering, sorting, etc., using the browser. This way, you don't lose your place when the page is reloaded. DataTables calls this the "state" of the table.
For some applications, you should ensure that the view state is not kept in the browser, so you'll need to disable this setting on the DataTables tab inside the View Settings metabox on the View editor.
You can read more about this setting on the official DataTables library website.