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 137.9 Bill $7.63 2019-04-21
1 89.3 Joe $39.74 2018-08-02
2 955.2 Bob $20.24 2019-02-22
3 274.2 Matt $99.14 2018-11-27
4 491 Bill $30.24 2018-03-10
5 508.6 Joe $65.54 2017-11-27
6 981.9 Bob $80.84 2019-01-01
7 731.1 Matt $4.33 2018-08-10
8 921.4 Bill $58.74 2018-04-02
9 354.3 Joe $10.74 2019-07-05
10 58.2 Bob $24.54 2019-10-01
11 581.5 Matt $33.54 2017-11-02
12 878.6 Bill $29.04 2018-06-24
13 351.4 Joe $56.44 2018-06-13
14 749.5 Bob $5.53 2019-05-28
15 920.7 Matt $56.34 2018-04-25
16 3.2 Bill $54.54 2017-09-14
17 431.5 Joe $27.64 2017-11-03
18 734.9 Bob $19.84 2019-09-13
19 926.5 Matt $55.24 2020-01-15
20 514.3 Bill $61.04 2017-08-25
21 177.9 Joe $19.14 2018-09-16
22 238.7 Bob $7.03 2019-08-17
23 501.4 Matt $42.14 2018-03-30
24 754.7 Bill $17.14 2018-06-01
25 310.1 Joe $9.13 2020-03-14
26 521 Bob $9.43 2018-10-05
27 539.4 Matt $52.64 2019-08-21
28 601.1 Bill $26.14 2020-04-05
29 249.8 Joe $18.74 2018-11-04
30 5.7 Bob $70.24 2020-10-10
31 6.8 Matt $87.94 2018-03-19
32 342.2 Bill $11.84 2018-06-08
33 967.3 Joe $61.94 2019-10-09
34 156.1 Bob $37.44 2020-04-23
35 399.6 Matt $68.44 2020-08-07
36 206.5 Bill $20.54 2017-09-24
37 558.5 Joe $74.54 2019-05-25
38 186.8 Bob $34.54 2020-03-22
39 12.7 Matt $59.54 2017-08-24
40 390.4 Bill $60.14 2019-11-14
41 378.1 Joe $60.84 2019-06-28
42 557.3 Bob $95.04 2019-11-11
43 806.4 Matt $91.74 2018-08-28
44 476.8 Bill $7.33 2019-11-04
45 318 Joe $47.34 2018-11-03
46 250.6 Bob $67.94 2019-06-28
47 277.6 Matt $23.84 2018-09-06
48 830.5 Bill $42.44 2019-10-10
49 644.2 Joe $43.74 2018-06-29
50 645 Bob $82.74 2020-05-24
51 347.3 Matt $20.54 2019-02-25
52 929 Bill $76.34 2018-12-29
53 628.6 Joe $56.94 2018-09-24
54 947.6 Bob $4.63 2018-12-17
55 640.6 Matt $36.44 2020-06-16
56 17.7 Bill $61.44 2019-06-11
57 599.9 Joe $89.24 2020-03-11
58 926.6 Bob $72.24 2018-05-15
59 598.7 Matt $36.64 2019-10-03
60 866 Bill $1.13 2019-03-17
61 734.1 Joe $35.94 2019-11-09
62 209.8 Bob $28.84 2019-02-08
63 635.3 Matt $91.64 2017-09-27
64 977.7 Bill $86.44 2017-11-19
65 393 Joe $50.44 2019-01-14
66 280.8 Bob $52.24 2017-10-24
67 847.6 Matt $12.24 2020-08-21
68 651.8 Bill $4.83 2019-10-05
69 880.2 Joe $64.74 2017-10-02
70 545.5 Bob $51.34 2017-10-15
71 38.1 Matt $24.74 2018-12-04
72 736.1 Bill $45.74 2019-11-02
73 196.6 Joe $9.23 2019-07-28
74 226.1 Bob $7.03 2019-02-20
75 301.4 Matt $46.34 2020-09-26
76 740.4 Bill $74.34 2019-03-23
77 793.6 Joe $59.14 2019-08-11
78 738.7 Bob $24.34 2019-10-06
79 406.2 Matt $12.34 2018-08-23
80 440.1 Bill $66.84 2020-04-08
81 485.4 Joe $70.64 2017-11-19
82 889.4 Bob $44.24 2019-05-01
83 581.1 Matt $63.94 2019-08-16
84 188.9 Bill $86.54 2019-11-04
85 660.5 Joe $16.64 2018-02-20
86 636.4 Bob $90.74 2020-06-30
87 134.3 Matt $70.04 2019-03-14
88 754.2 Bill $43.94 2019-12-20
89 422.4 Joe $84.54 2020-05-10
90 737.7 Bob $28.54 2019-04-22
91 565.9 Matt $77.04 2018-05-17
92 641.2 Bill $66.04 2019-10-11
93 173.2 Joe $24.14 2018-08-19
94 797.2 Bob $43.04 2018-03-16
95 490.8 Matt $9.03 2018-09-24
96 647 Bill $72.64 2018-06-08
97 546.6 Joe $86.14 2020-08-26
98 37 Bob $61.54 2018-11-16
99 770 Matt $3.73 2018-05-20
100 625.8 Bill $77.54 2019-04-15
101 149.8 Joe $34.14 2018-07-23
102 380.2 Bob $98.24 2020-08-25
103 52.8 Matt $15.54 2018-03-30
104 364.3 Bill $95.24 2019-08-09
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 540.7 Bill $44.34 2019-11-21
1 883.4 Joe $9.03 2019-01-09
2 132.7 Bob $63.64 2018-07-31
3 82.1 Matt $67.34 2020-07-12
4 470.4 Mark $44.34 2020-08-24
5 703.6 Tom $6.93 2019-12-07
6 221.8 Jake $21.94 2017-11-04
7 510.4 Greg $59.94 2017-10-14
8 458.6 Adam $65.24 2018-04-12
9 647.5 Steve $1.63 2018-02-15
tfoot tfoot tfoot tfoot tfoot