From b05684a5c9ca8cc93b330728a312d883a4dd6c9a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 24 Oct 2010 11:52:01 +0200 Subject: [PATCH] Order by DESC with grouping --- adminer/select.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c97e112d..887ba0f9 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -254,7 +254,8 @@ if (!$columns) { if ($name != "") { $rank++; $names[$key] = $name; - echo '' . apply_sql_function($val["fun"], $name) . ""; //! columns looking like functions + $column = idf_escape($key); + echo '' . apply_sql_function($val["fun"], $name) . ""; // $order[0] == $key - COUNT(*) //! columns looking like functions } $functions[$key] = $val["fun"]; next($select);