Have you seen this demo? It uses jQuery's tablesorter plugin to-- well... sort tables.
Try clicking on the column headers. Slick, eh? Toggles ascending and descending sort for that column.
And, here's the fun part: It's a one liner:
$(document).ready(function() { $("#large").tableSorter(); });
(We talked about sorting tables before, but I recall that the jQuery example we were looking at that day didn't have the sortable header trick. Now that I see tablesorter does, I'm experiencing the geeky excitement that has driven me to make this demo for you.)
-- Brian Tanaka
Id | Phone | Total | Ip | Url | Time | ISO Date | UK Date | |
---|---|---|---|---|---|---|---|---|
devo@flexomat.com | 66672 | 941-964-8535 | $2482.79 | 172.78.200.124 | http://gmail.com | 15:10 | 1988/12/14 | 14/12/1988 |
henry@mountdev.net | 35889 | 941-964-9543 | $2776.09 | 119.232.182.142 | http://www.gmail.com | 3:54 | 1974/1/19 | 19/1/1974 |
christian@reno.gov | 60021 | 941-964-5617 | $2743.41 | 167.209.64.181 | http://www.dotnet.ca | 10:58 | 2000/3/25 | 25/3/2000 |
muffins@donuts.com | 17927 | 941-964-9511 | $2998.18 | 210.214.231.182 | http://google.se | 21:22 | 1993/1/24 | 24/1/1993 |
muffins@reno.gov | 76375 | 941-964-2757 | $1836.09 | 220.222.93.171 | http://www.samba.org | 15:22 | 1988/4/4 | 4/4/1988 |
mendez@gmail.com | 45834 | 941-964-2575 | $2805.46 | 228.170.245.253 | http://flexomat.com | 11:31 | 1975/12/12 | 12/12/1975 |
dev@gmail.com | 20022 | 941-964-4967 | $3296.54 | 175.248.70.240 | http://www.flexomat.com | 4:27 | 2002/7/3 | 3/7/2002 |
foo@polyester.se | 55977 | 941-964-745 | $2953.73 | 222.114.227.156 | http://www.donuts.com | 23:49 | 1977/8/4 | 4/8/1977 |
adam@aftonbladet.se | 38867 | 941-964-6302 | $1949.27 | 116.241.143.196 | http://flexomat.com | 23:35 | 1995/7/27 | 27/7/1995 |
devo@donuts.com | 51426 | 941-964-1234 | $1067.00 | 88.96.149.82 | http://www.polyester.se | 15:17 | 1986/1/5 | 5/1/1986 |
henry@samba.org | 40859 | 941-964-4856 | $3401.19 | 68.152.250.74 | http://www.flexomat.com | 4:36 | 1990/3/7 | 7/3/1990 |
found@dotnet.ca | 23986 | 941-964-2686 | $1393.52 | 98.102.181.138 | http://lostnfound.org | 5:51 | 1993/7/22 | 22/7/1993 |
carl@fish.org | 73392 | 941-964-5792 | $3876.04 | 246.234.182.243 | http://www.google.se | 6:52 | 1984/7/14 | 14/7/1984 |
found@mountdev.net | 03519 | 941-964-1599 | $1176.48 | 104.212.122.177 | http://donuts.com | 18:52 | 2000/8/6 | 6/8/2000 |
lost@fish.org | 36628 | 941-964-5975 | $822.23 | 153.63.68.208 | http://www.gmail.com | 7:53 | 1994/7/14 | 14/7/1994 |
mendez@dotnet.ca | 90442 | 941-964-1649 | $1975.72 | 128.161.95.170 | http://reno.gov | 8:35 | 1997/10/20 | 20/10/1997 |
carl@donuts.com | 00412 | 941-964-6432 | $1834.77 | 141.231.126.192 | http://gmail.com | 16:15 | 1997/8/23 | 23/8/1997 |
foo@fish.org | 80653 | 941-964-1022 | $260.26 | 98.102.97.81 | http://samba.org | 8:27 | 1991/11/24 | 24/11/1991 |
found@fish.org | 54635 | 941-964-6439 | $1442.80 | 108.133.231.154 | http://dotnet.ca | 6:47 | 1977/7/12 | 12/7/1977 |
found@flexomat.com | 20953 | 941-964-5544 | $575.42 | 247.246.235.138 | http://gmail.com | 3:12 | 1978/6/10 | 10/6/1978 |
lost@aftonbladet.se | 60810 | 941-964-8406 | $1054.39 | 130.80.125.154 | http://www.samba.org | 15:50 | 1978/5/18 | 18/5/1978 |
carl@reno.gov | 22666 | 941-964-104 | $373.59 | 185.150.127.115 | http://www.lostnfound.org | 10:11 | 1971/11/5 | 5/11/1971 |
carl@donuts.com | 82867 | 941-964-1031 | $631.03 | 62.244.222.152 | http://www.reno.gov | 11:24 | 1985/1/22 | 22/1/1985 |
foo@donuts.com | 11268 | 941-964-208 | $3730.64 | 234.192.138.252 | http://aftonbladet.se | 22:45 | 1979/8/4 | 4/8/1979 |
devo@google.se | 17059 | 941-964-2903 | $1404.67 | 73.189.246.202 | http://www.gmail.com | 22:28 | 1983/4/28 | 28/4/1983 |
muffins@flexomat.com | 90584 | 941-964-4640 | $3706.01 | 243.162.73.115 | http://www.fish.org | 11:12 | 1997/4/8 | 8/4/1997 |
foo@samba.org | 82966 | 941-964-7245 | $1001.38 | 255.182.148.252 | http://www.reno.gov | 8:42 | 1995/11/1 | 1/11/1995 |
foo@reno.gov | 03603 | 941-964-8942 | $1677.07 | 176.96.162.192 | http://www.flexomat.com | 19:11 | 1980/7/31 | 31/7/1980 |
found@flexomat.com | 84939 | 941-964-7004 | $3916.83 | 240.145.198.78 | http://www.fish.org | 1:29 | 1980/8/26 | 26/8/1980 |
henry@lostnfound.org | 76453 | 941-964-3084 | $3875.88 | 235.225.168.168 | http://www.fish.org | 15:31 | 2000/10/22 | 22/10/2000 |
sam@aftonbladet.se | 36274 | 941-964-7784 | $73.43 | 114.190.194.148 | http://www.dn.se | 18:24 | 1994/11/11 | 11/11/1994 |
dev@polyester.se | 15971 | 941-964-7527 | $1855.18 | 179.121.143.189 | http://www.flexomat.com | 10:25 | 1984/8/16 | 16/8/1984 |
devo@fish.org | 31734 | 941-964-9760 | $3201.35 | 213.186.220.205 | http://www.samba.org | 19:37 | 1979/3/4 | 4/3/1979 |
devo@reno.gov | 52074 | 941-964-2068 | $3035.24 | 189.62.225.163 | http://www.dn.se | 21:18 | 1998/2/24 | 24/2/1998 |
mendez@fish.org | 87800 | 941-964-7933 | $618.59 | 254.119.153.91 | http://www.dn.se | 22:34 | 1979/5/28 | 28/5/1979 |
muffins@reno.gov | 95926 | 941-964-147 | $3897.91 | 105.85.121.209 | http://www.flexomat.com | 9:50 | 2003/4/1 | 1/4/2003 |
carl@donuts.com | 74513 | 941-964-4507 | $2150.68 | 106.175.123.125 | http://www.fish.org | 21:42 | 1977/4/8 | 8/4/1977 |
sam@fish.org | 82420 | 941-964-2134 | $3947.54 | 129.78.102.122 | http://mountdev.net | 11:33 | 1990/11/26 | 26/11/1990 |
devo@mountdev.net | 81905 | 941-964-3535 | $722.17 | 229.101.84.111 | http://fish.org | 7:29 | 1975/12/28 | 28/12/1975 |
john@lostnfound.org | 93124 | 941-964-1508 | $394.82 | 61.184.235.77 | http://www.mountdev.net | 14:38 | 1979/12/10 | 10/12/1979 |