Logo
doctype [?]
[strict] [loose] [none]

Table Sorting, Filtering, Etc - BETA!


Tabular data in table form is common on web sites and web applications, and a common requirement is to manipulate the data tables on the client side, rather than going back to the server to sort, filter, page, etc. This library offers the key functionality that is typical - the most common of which is client-side table sorting.

Some of the key features of this library are:

  • Sorting is fast. Much faster than most other libraries, due to a number of optimizations
  • Rowspan and Colspan in headers will not confuse the code
  • Alternate row coloring (a common item) is handled by re-shading after sorting or filtering
  • Tbody contents are handled separately, so there can be separate sortable sections of a table
  • Easy CSS classes are applied to cells after filtering, sorting, etc which you can hook into from your CSS rules to show the sorted column or the cells which are filtered.

Unobtrusive Client-Side Table Sorting, Filtering, and Paging Example

All of the functionality in these tables was accomplished by simply inserting class names.

Absolutely no javascript coding was required!


Index Numeric Text Currency Date
0 320.6 Bill $36.64 2015-09-24
1 996.9 Joe $43.44 2017-03-06
2 498.7 Bob $77.54 2016-03-13
3 418.8 Matt $89.54 2014-08-29
4 606.6 Bill $31.54 2016-08-17
5 68.9 Joe $88.54 2016-05-06
6 418.8 Bob $33.04 2014-12-01
7 327.7 Matt $5.03 2014-03-15
8 752.8 Bill $46.64 2016-11-07
9 918 Joe $91.24 2014-04-10
10 108.6 Bob $23.24 2015-06-08
11 612.6 Matt $22.94 2016-10-22
12 573.8 Bill $72.84 2016-02-05
13 226.1 Joe $14.64 2015-10-06
14 392.6 Bob $75.34 2016-10-04
15 179.8 Matt $82.24 2016-05-24
16 878.7 Bill $24.14 2014-04-09
17 126.6 Joe $56.84 2014-06-06
18 148.4 Bob $32.14 2015-11-26
19 7.1 Matt $23.94 2015-08-16
20 51.9 Bill $34.74 2016-05-11
21 462.7 Joe $96.04 2017-01-31
22 307.1 Bob $53.44 2016-03-22
23 927 Matt $76.04 2016-09-07
24 441.5 Bill $15.24 2015-11-26
25 270.6 Joe $33.24 2015-05-04
26 985 Bob $21.14 2016-02-06
27 28.9 Matt $33.74 2014-09-24
28 122.4 Bill $48.64 2015-10-01
29 681.5 Joe $49.34 2016-07-03
30 152.2 Bob $54.54 2014-06-09
31 855.1 Matt $0.73 2014-04-23
32 787 Bill $31.44 2016-01-01
33 446.5 Joe $24.14 2015-03-29
34 252.5 Bob $68.34 2015-09-21
35 811.3 Matt $95.34 2016-10-09
36 191.8 Bill $93.84 2014-04-09
37 812.8 Joe $96.74 2015-05-05
38 1.9 Bob $8.93 2016-11-17
39 511.8 Matt $77.14 2015-04-09
40 260.5 Bill $92.34 2016-12-30
41 356.5 Joe $77.84 2017-01-07
42 412.5 Bob $56.54 2014-11-05
43 2.1 Matt $1.13 2015-08-11
44 351.3 Bill $26.44 2014-08-09
45 852.8 Joe $7.53 2014-06-16
46 686.2 Bob $26.74 2014-04-05
47 730.3 Matt $8.03 2014-02-26
48 111.5 Bill $8.23 2014-06-10
49 978.3 Joe $59.34 2016-11-18
50 337.7 Bob $85.44 2016-08-21
51 241.6 Matt $21.04 2015-12-08
52 152.7 Bill $62.34 2014-07-22
53 378.1 Joe $62.54 2014-08-05
54 844.7 Bob $97.64 2015-06-06
55 993.9 Matt $82.94 2015-09-01
56 96.3 Bill $51.54 2016-07-06
57 137 Joe $24.54 2016-10-06
58 144.7 Bob $35.74 2017-01-09
59 241.8 Matt $33.54 2015-09-26
60 109.7 Bill $67.34 2015-04-10
61 900.7 Joe $91.44 2015-12-09
62 469.7 Bob $6.73 2014-09-28
63 603.7 Matt $44.54 2016-09-20
64 749.2 Bill $29.04 2016-08-24
65 158.5 Joe $28.34 2016-02-07
66 643.1 Bob $38.04 2014-07-26
67 394.5 Matt $51.74 2015-05-05
68 225.7 Bill $66.14 2016-06-21
69 138.4 Joe $90.34 2014-05-13
70 644.5 Bob $1.33 2016-06-30
71 4.3 Matt $91.34 2016-03-22
72 574.3 Bill $38.34 2016-06-07
73 767.1 Joe $98.74 2014-09-04
74 584.5 Bob $73.64 2015-08-05
75 377.9 Matt $89.44 2016-06-28
76 999.9 Bill $53.74 2014-07-11
77 136.8 Joe $93.24 2016-02-29
78 518.7 Bob $15.84 2015-02-02
79 257.2 Matt $29.64 2014-10-12
80 330.5 Bill $94.04 2014-10-27
81 76.3 Joe $94.54 2014-07-19
82 736.3 Bob $51.94 2015-10-05
83 463 Matt $28.64 2015-09-20
84 634.5 Bill $87.04 2014-11-18
85 95.6 Joe $24.84 2014-07-19
86 840 Bob $24.84 2016-03-31
87 964.1 Matt $38.54 2016-01-12
88 604.8 Bill $90.34 2016-07-13
89 906.7 Joe $16.14 2014-04-20
90 111.6 Bob $49.14 2017-04-12
91 329 Matt $56.74 2017-02-07
92 459.8 Bill $30.44 2015-07-31
93 973.6 Joe $76.74 2016-06-26
94 474 Bob $40.14 2016-01-27
95 710.2 Matt $49.64 2016-11-09
96 840.8 Bill $33.64 2014-06-23
97 508.7 Joe $30.14 2015-09-11
98 108.4 Bob $90.54 2015-05-22
99 865.5 Matt $81.24 2015-11-24
100 918.4 Bill $92.34 2014-04-14
101 911.7 Joe $25.24 2016-01-31
102 849.4 Bob $71.24 2017-01-16
103 305.9 Matt $68.64 2016-04-20
104 48.2 Bill $16.04 2014-05-28
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 660.7 Bill $87.04 2015-12-24
1 521.3 Joe $71.14 2017-01-16
2 629.7 Bob $21.94 2014-10-29
3 122.9 Matt $32.84 2014-07-12
4 519.4 Mark $19.34 2017-02-05
5 76.4 Tom $11.14 2016-11-09
6 124.5 Jake $2.33 2014-06-27
7 739.8 Greg $87.24 2016-09-29
8 658.5 Adam $17.84 2015-10-01
9 343.7 Steve $22.64 2016-04-03
tfoot tfoot tfoot tfoot tfoot