From b3b4ea71687d0620d18865a05139137fb554c2ee Mon Sep 17 00:00:00 2001 From: Marcus Nyeholt Date: Thu, 3 Sep 2015 12:28:25 +1000 Subject: [PATCH] FIX to be an actual working bit of code... --- code/GridFieldOrderableRows.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/GridFieldOrderableRows.php b/code/GridFieldOrderableRows.php index 43f4a28..91acce2 100755 --- a/code/GridFieldOrderableRows.php +++ b/code/GridFieldOrderableRows.php @@ -272,10 +272,9 @@ class GridFieldOrderableRows extends RequestHandler implements protected function sortTerm($list) { // need to handle ANSI escaping for DBs differently from other list types if ($list instanceof DataList) { - $sortterm .= '"'.$this->getSortTable($list).'"."'.$this->getSortField().'"'; - } else { - $sortterm .= $this->getSortTable($list).'.'.$this->getSortField(); - } + return '"'.$this->getSortTable($list).'"."'.$this->getSortField().'"'; + } + return $this->getSortTable($list).'.'.$this->getSortField(); }