This link has been bookmarked by 67 people . It was first bookmarked on 31 Mar 2007, by Ivan Pavlov.
-
16 Jun 10
-
07 Apr 09
-
25 Jan 09
-
01 Jan 09
-
23 Mar 08
-
07 Mar 08
-
10 Oct 07
-
31 Aug 07
-
19 Aug 07
-
23 Jul 07
-
05 Jun 07
-
01 Jun 07
-
27 May 07
-
25 May 07
-
24 May 07
-
29 Apr 07
-
01 Apr 07
-
31 Mar 07
-
27 Mar 07
-
26 Mar 07
-
22 Feb 07
-
10 Feb 07
-
28 Jan 07
-
26 Jan 07
-
20 Jan 07
-
17 Jan 07
-
16 Jan 07
-
30 Dec 06
-
01 Dec 06
Dan DascalescuMake HTML tables sortable by setting their class to "sorttable". Automatic detection of column type (string, number, date, currency)
-
18 Sep 06
-
16 Sep 06
-
03 Sep 06
-
31 Aug 06
-
17 Aug 06
-
24 Jul 06
-
18 Jun 06
-
09 Jun 06
-
08 Jun 06
-
15 May 06
-
12 May 06
Caspar Van der LindenSorting a table with DOM scripting.
-
Pretty simple. But if you saw that table in a client-side application, you'd expect to be able to click on the headers and have the table sort, would you not? I know it always annoys me when you can't. A fair few web applications do allow this; most of them, which are pulling this data by submitting a SQL query to a relational database (an environment eminently suited to tabular data) implement this by resubmitting the whole page with something like ordercolumn=4 in the URL, and then adding an ORDER BY clause to their SQL query to return the data from the DB ordered by the specified column. Resubmit the page? Just to sort data we already have? I'm sure we can do better than that.
-
-
10 Apr 06
-
07 Apr 06
-
12 Mar 05
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.