diff --git a/list.php b/list.php index 96f3ca2f..6f28c213 100755 --- a/list.php +++ b/list.php @@ -864,7 +864,7 @@ function ($val) { // Ignore invisible first columns $column = $sortField['column'] - 2; if (isset($shownFields[$column])) { - $fieldName = $shownFields[$column]['name']; + [$fieldName] = explode(' ', $shownFields[$column]['name']); $direction = $sortField['direction'] === 'desc' ? 'DESC' : 'ASC'; if (substr($fieldName, 0, 1) == '.') { $fieldName = substr($fieldName, 1);