added order functionality to last status change column

This commit is contained in:
alejandro-campos 2020-03-23 13:19:08 +01:00
parent 669122dbb6
commit 9d14c25b40
1 changed files with 20 additions and 0 deletions

View File

@ -878,6 +878,26 @@ switch ($sortField) {
}
break;
case 'last_status_change':
switch ($sort) {
case 'up':
$selectStatusUp = $selected;
$order = [
'field' => 'tagente_estado.last_status_change',
'order' => 'ASC',
];
break;
case 'down':
$selectStatusDown = $selected;
$order = [
'field' => 'tagente_estado.last_status_change',
'order' => 'DESC',
];
break;
}
break;
case 'timestamp':
switch ($sort) {
case 'up':