From 809d76dfb61ae7e01d2d634286d7bbfe9d9d8a27 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Sun, 16 May 2004 15:07:46 +0000 Subject: [PATCH] Changed default sort order (on the first click) to ascending --- doc/include/sortabletable.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/include/sortabletable.js b/doc/include/sortabletable.js index 2fb47833..fce2fb27 100644 --- a/doc/include/sortabletable.js +++ b/doc/include/sortabletable.js @@ -53,6 +53,9 @@ screen. As a simple example, consider sorting a column containing formatted numbers: 1,000.00 + + 15-May 2004, ahu: changed default sort order (on the first click) to + ascending (SortableTable.prototype.sort) + ToDo: - Allow for different Date formats */ @@ -175,7 +178,8 @@ SortableTable.prototype.sort = function (nColumn, bDescending, sSortType) { if (bDescending == null) { if (this.sortColumn != nColumn) - this.descending = true; + // 15-May 2004, ahu: change to false for ascending + this.descending = false; else this.descending = !this.descending; }