I have set a default sort order in AG.
When I set an additional sort order in the _init function (hooks/tablename.php -> ) the page is not displayed at, but I get an error thrown.
AG Setting: Code in _init:
Code: Select all
$options->DefaultSortField = 'JobFertiggestellt DESC, Log_Fertig_Zeit DESC, BenoetigtAm ASC, ID_Container_Platz_aktuell DESC';
-----------------------
SELECT
... all my fields...
FROM
... my table/joins ...
ORDER BY
JobFertiggestellt DESC,
Log_Fertig_Zeit DESC,
BenoetigtAm,
ID_Container_Platz_aktuell DESC
desc
LIMIT 0, 50
-----------------------
I am not sure if this also happens when I do not set descending as sortorder in AG.
Olaf