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 724.5 Bill $45.94 2017-01-01
1 102.7 Joe $91.14 2018-01-26
2 962.6 Bob $0.23 2018-02-04
3 530.8 Matt $58.84 2018-11-12
4 626.3 Bill $90.14 2017-09-27
5 113.4 Joe $85.84 2017-12-19
6 130.6 Bob $67.64 2017-01-29
7 661.9 Matt $15.04 2016-06-13
8 465.8 Bill $37.34 2017-12-10
9 619.5 Joe $70.14 2019-04-11
10 702.2 Bob $42.64 2017-07-24
11 891.7 Matt $52.84 2017-04-12
12 418.3 Bill $49.14 2017-04-14
13 952.6 Joe $2.13 2019-02-23
14 729.9 Bob $64.84 2018-10-31
15 151.7 Matt $76.14 2018-05-20
16 645.5 Bill $89.24 2017-05-10
17 859.3 Joe $55.44 2017-10-30
18 874.9 Bob $1.93 2019-01-05
19 361.2 Matt $63.94 2018-01-24
20 268.2 Bill $34.14 2019-06-01
21 634.4 Joe $23.24 2017-12-02
22 911.2 Bob $65.14 2019-06-23
23 189.5 Matt $60.34 2019-07-17
24 55.5 Bill $33.34 2018-06-05
25 822.7 Joe $48.54 2017-09-01
26 447.9 Bob $13.04 2017-04-29
27 748.7 Matt $98.94 2019-01-29
28 199.7 Bill $86.44 2019-02-20
29 23.8 Joe $22.54 2017-12-29
30 549.2 Bob $49.44 2019-01-27
31 500 Matt $12.84 2016-08-22
32 979 Bill $3.93 2018-09-14
33 948.6 Joe $22.84 2017-06-12
34 939.7 Bob $28.44 2018-07-02
35 578.4 Matt $10.74 2016-11-12
36 978.1 Bill $55.44 2017-04-12
37 269.3 Joe $30.34 2017-03-31
38 114 Bob $50.34 2016-10-24
39 977.8 Matt $52.64 2017-07-12
40 480.3 Bill $7.53 2019-02-03
41 323.4 Joe $57.54 2019-07-01
42 398.9 Bob $55.44 2016-06-14
43 125 Matt $50.34 2017-03-05
44 454.3 Bill $44.34 2018-01-27
45 116.4 Joe $2.13 2018-05-31
46 263.2 Bob $99.94 2016-12-31
47 540 Matt $26.84 2017-12-16
48 806.2 Bill $38.24 2019-07-21
49 936.5 Joe $36.04 2018-01-19
50 292.1 Bob $84.04 2018-04-16
51 141.1 Matt $16.44 2016-12-11
52 118 Bill $56.24 2018-09-13
53 133.7 Joe $68.74 2017-02-15
54 377.7 Bob $14.24 2018-07-12
55 905.6 Matt $25.84 2018-08-05
56 540 Bill $52.14 2018-08-04
57 728.7 Joe $6.13 2019-06-10
58 220.3 Bob $86.74 2017-06-25
59 214.4 Matt $80.34 2018-08-16
60 735 Bill $9.63 2018-02-12
61 331 Joe $23.74 2018-08-20
62 502.3 Bob $35.54 2017-03-31
63 228.1 Matt $48.84 2019-06-05
64 456.7 Bill $86.64 2016-09-14
65 127.9 Joe $77.14 2017-07-09
66 819.8 Bob $31.14 2019-03-04
67 510.7 Matt $4.03 2019-05-14
68 469.6 Bill $26.04 2018-12-11
69 810.7 Joe $47.54 2018-04-27
70 511.7 Bob $20.94 2018-08-16
71 52.8 Matt $54.04 2019-05-17
72 757.3 Bill $4.33 2017-04-29
73 24.2 Joe $27.14 2018-11-15
74 978.2 Bob $72.74 2018-06-13
75 73.7 Matt $85.54 2017-09-21
76 427.1 Bill $67.54 2018-09-17
77 301.3 Joe $18.64 2018-11-02
78 236.5 Bob $65.54 2016-06-28
79 38.6 Matt $46.64 2017-12-30
80 644.1 Bill $97.74 2018-08-29
81 345 Joe $3.03 2017-03-15
82 282.6 Bob $78.84 2017-05-03
83 574.5 Matt $81.24 2018-03-12
84 354.6 Bill $79.04 2017-05-01
85 0.4 Joe $86.34 2016-11-14
86 417.5 Bob $29.14 2019-01-04
87 145.9 Matt $59.24 2016-06-05
88 914.2 Bill $82.84 2018-07-04
89 942.7 Joe $86.74 2016-10-23
90 445.6 Bob $51.14 2016-09-27
91 157.9 Matt $85.64 2016-11-01
92 410.6 Bill $13.84 2019-05-01
93 705.9 Joe $71.34 2018-09-25
94 271.9 Bob $6.73 2018-01-25
95 565 Matt $6.83 2017-08-20
96 713.3 Bill $48.54 2018-07-22
97 536.4 Joe $63.14 2017-04-05
98 545 Bob $54.54 2016-09-19
99 208.7 Matt $48.84 2019-06-19
100 338.1 Bill $93.34 2017-11-29
101 444.9 Joe $9.13 2017-06-15
102 581.9 Bob $50.24 2017-11-22
103 506.3 Matt $20.84 2016-12-25
104 242.3 Bill $48.04 2017-03-12
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 768 Bill $4.53 2017-05-30
1 157.1 Joe $75.84 2018-12-12
2 836.7 Bob $29.44 2017-10-11
3 108 Matt $83.94 2019-07-04
4 207.4 Mark $4.83 2017-11-18
5 173.6 Tom $38.64 2017-09-02
6 650.3 Jake $83.14 2017-12-16
7 982.8 Greg $41.24 2019-07-20
8 453.4 Adam $91.94 2017-01-14
9 636.6 Steve $16.14 2018-07-23
tfoot tfoot tfoot tfoot tfoot