From 2f78d9b4e93c7f09ad0d2cf60e3d5304c6edfd3d Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Fri, 22 Nov 2024 20:32:45 +0200 Subject: [PATCH] Fix sorting by biller. Fixes #417. --- list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);