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 122 Bill $33.74 2020-09-07
1 607 Joe $33.24 2018-04-08
2 815.4 Bob $69.24 2020-11-03
3 431.3 Matt $74.34 2019-08-11
4 95.2 Bill $45.04 2020-08-10
5 194.9 Joe $52.54 2019-01-22
6 914.1 Bob $3.43 2020-08-19
7 225.4 Matt $45.54 2019-06-24
8 855.3 Bill $35.64 2018-11-06
9 735.3 Joe $85.94 2021-01-17
10 40 Bob $98.14 2018-12-11
11 815.3 Matt $58.84 2019-12-31
12 828.4 Bill $40.34 2019-01-09
13 652.8 Joe $83.54 2021-05-18
14 89 Bob $93.04 2019-08-21
15 840 Matt $12.54 2021-04-20
16 102.8 Bill $3.93 2018-03-29
17 861.7 Joe $26.44 2019-09-06
18 256.5 Bob $11.94 2020-10-22
19 452.7 Matt $85.54 2020-05-12
20 342.1 Bill $89.54 2020-04-20
21 568 Joe $71.04 2018-12-30
22 126.5 Bob $53.84 2020-04-10
23 377.2 Matt $19.14 2019-10-02
24 371.5 Bill $28.04 2019-07-12
25 816.1 Joe $12.04 2019-12-03
26 786.2 Bob $22.24 2020-01-17
27 790.2 Matt $8.43 2020-11-18
28 248.8 Bill $34.14 2021-04-05
29 63.5 Joe $79.34 2020-10-18
30 737.3 Bob $13.54 2020-06-18
31 392 Matt $70.34 2019-07-18
32 634.7 Bill $83.04 2021-04-01
33 280.7 Joe $20.74 2018-09-07
34 761.3 Bob $57.84 2019-07-28
35 171.6 Matt $39.44 2019-12-13
36 706.6 Bill $18.04 2020-08-27
37 280.2 Joe $97.04 2020-12-02
38 117.8 Bob $21.94 2018-10-31
39 74.7 Matt $28.34 2021-05-06
40 886.2 Bill $2.03 2018-08-09
41 592.1 Joe $41.24 2020-10-31
42 7.6 Bob $4.73 2020-04-16
43 961.2 Matt $32.74 2020-12-12
44 105.5 Bill $8.93 2019-08-11
45 529.4 Joe $26.04 2020-11-09
46 73 Bob $96.74 2018-04-06
47 838.9 Matt $24.74 2021-05-03
48 688.9 Bill $36.54 2018-11-11
49 879.4 Joe $43.94 2019-10-04
50 863 Bob $32.54 2019-10-28
51 981.7 Matt $91.74 2021-02-15
52 803.6 Bill $92.54 2021-04-10
53 455 Joe $88.64 2019-02-22
54 313.2 Bob $99.24 2019-06-04
55 749.4 Matt $52.14 2020-03-31
56 579.9 Bill $59.44 2020-02-22
57 590.6 Joe $43.34 2020-12-03
58 571.8 Bob $12.24 2018-11-29
59 772.2 Matt $0.13 2020-04-20
60 255.3 Bill $86.44 2021-05-02
61 758.3 Joe $84.54 2021-01-26
62 673.3 Bob $64.94 2020-10-31
63 635 Matt $10.44 2020-06-22
64 923.9 Bill $41.74 2020-06-12
65 301.3 Joe $16.74 2018-12-05
66 938.8 Bob $74.64 2020-10-23
67 542.9 Matt $33.74 2019-01-05
68 393.8 Bill $90.94 2019-05-26
69 609.4 Joe $68.14 2019-05-27
70 264.2 Bob $93.64 2018-12-20
71 244.4 Matt $69.44 2018-06-24
72 142 Bill $36.84 2020-07-15
73 964.5 Joe $0.23 2020-11-12
74 673.2 Bob $92.64 2019-01-07
75 373.5 Matt $22.74 2019-07-19
76 594.7 Bill $16.64 2018-09-29
77 409.8 Joe $70.94 2019-10-23
78 657.7 Bob $10.34 2019-07-10
79 27.1 Matt $71.24 2018-07-05
80 397.4 Bill $97.64 2018-04-22
81 631.5 Joe $22.14 2020-07-03
82 711.1 Bob $36.34 2018-07-02
83 439.7 Matt $32.74 2018-07-05
84 272.4 Bill $0.03 2018-04-10
85 522.2 Joe $37.44 2018-12-29
86 938.6 Bob $96.84 2019-07-10
87 101.2 Matt $37.84 2018-08-07
88 600.7 Bill $3.63 2018-12-04
89 8.7 Joe $6.33 2021-03-07
90 97.3 Bob $46.04 2021-02-08
91 121.9 Matt $9.23 2018-08-20
92 840.5 Bill $80.34 2019-10-14
93 926.6 Joe $24.24 2020-10-27
94 15 Bob $51.54 2020-10-27
95 29.6 Matt $3.73 2018-11-02
96 271.6 Bill $97.54 2018-09-26
97 679.7 Joe $7.73 2019-12-08
98 796.8 Bob $67.74 2020-01-18
99 16.6 Matt $68.64 2020-03-30
100 948.6 Bill $78.34 2018-07-15
101 856.8 Joe $90.54 2018-10-29
102 985.6 Bob $74.54 2021-05-14
103 477 Matt $67.24 2018-12-19
104 295.4 Bill $68.74 2020-08-06
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 113.9 Bill $71.64 2020-09-18
1 306.1 Joe $98.84 2020-08-20
2 466.5 Bob $66.84 2020-11-17
3 5 Matt $46.44 2019-11-09
4 579.1 Mark $48.14 2018-11-10
5 216 Tom $42.94 2021-05-04
6 313 Jake $28.64 2021-01-14
7 501.5 Greg $27.24 2020-03-25
8 492.6 Adam $74.94 2019-03-11
9 726 Steve $4.43 2021-05-14
tfoot tfoot tfoot tfoot tfoot