From e688dfe6dbb5338a6cfe13775aacba70534e9a36 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 13 Oct 2003 19:18:39 +0000 Subject: - Fixed prefix problem with the book module. Patch by Moshe. - Usability improvements to the user module: removed some redundant menu items by taking advantage of the column sorting, added status messages and so on. Patch by Moshe plus some fixes. - Made the profile module use the table() function. Patch by Moshe. - Fixed breadcrumb spacing. Patch by Moshe. - Fixed colspan problem with node overview table. Patch by Stefan. - Fixed inconsistency with table sorting. Patch 0122 by Al. --- includes/tablesort.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes') diff --git a/includes/tablesort.inc b/includes/tablesort.inc index 2e16d8a8d..44a0db948 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -35,6 +35,9 @@ function tablesort($cell, $header) { $image = " "; $dir = array("asc" => "ascending", "desc" => "descending"); $title = t("sort ". $dir[$ts["sort"]]); + } else { + // If the user clicks a different header, we want to sort ascending initially. + $ts["sort"] = "asc"; } $cell["data"] = l($cell["data"] . $image, $_GET["q"], array("title" => $title), "sort=". $ts["sort"]. "&order=". urlencode($cell["data"]). $ts["query_string"]); -- cgit v1.2.3