From: Jakub Vrana Date: Thu, 9 Aug 2012 05:40:38 +0000 (-0700) Subject: Descending order after second click on column caption X-Git-Tag: v3.5.1~7 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=1501d60f148127b2cf72988008d9254cf577265b;p=adminer.git Descending order after second click on column caption --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c429c34d..9a0a781f 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -273,11 +273,14 @@ if (!$columns) { if ($name != "") { $rank++; $names[$key] = $name; + $column = idf_escape($key); $href = remove_from_uri('(order|desc)[^=]*|page') . '&order%5B0%5D=' . urlencode($key); + $desc = "&desc%5B0%5D=1"; echo ''; - echo '' . (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . ""; //! columns looking like functions + echo ''; // $order[0] == $key - COUNT(*) + echo (!$select || $val ? apply_sql_function($val["fun"], $name) : h(current($select))) . ""; //! columns looking like functions echo "