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 776.7 Bill $8.13 2021-01-05
1 664 Joe $23.34 2021-04-01
2 431.2 Bob $85.54 2021-01-04
3 992.7 Matt $30.04 2018-10-04
4 915 Bill $53.94 2021-05-21
5 83.5 Joe $47.64 2019-08-18
6 992.2 Bob $94.24 2020-04-15
7 747.5 Matt $97.84 2021-05-22
8 820.7 Bill $82.94 2019-06-23
9 234 Joe $68.74 2019-09-07
10 608.8 Bob $46.44 2019-12-10
11 358.2 Matt $12.84 2020-09-05
12 182.1 Bill $55.94 2020-03-20
13 930.9 Joe $55.24 2021-03-02
14 968.2 Bob $46.74 2019-09-16
15 835.4 Matt $55.04 2021-03-20
16 148 Bill $54.24 2021-01-12
17 668.4 Joe $29.04 2020-12-17
18 536 Bob $11.04 2020-06-01
19 799.6 Matt $34.44 2019-06-06
20 129 Bill $95.34 2020-11-24
21 539.6 Joe $31.14 2021-04-21
22 183.5 Bob $49.34 2019-11-28
23 681.9 Matt $42.44 2021-08-27
24 480 Bill $39.24 2019-12-19
25 817.3 Joe $22.84 2021-09-16
26 630.9 Bob $37.64 2020-04-04
27 386.4 Matt $4.43 2021-03-06
28 119.4 Bill $58.04 2021-07-11
29 681 Joe $38.04 2019-06-14
30 930 Bob $50.84 2019-04-20
31 643 Matt $4.83 2020-04-14
32 484 Bill $23.14 2018-09-06
33 884.1 Joe $91.34 2020-01-10
34 836.1 Bob $39.34 2021-04-08
35 254.9 Matt $21.14 2018-10-27
36 224 Bill $84.14 2020-01-04
37 735.4 Joe $22.84 2020-02-24
38 536.6 Bob $34.74 2018-10-26
39 448.1 Matt $2.83 2020-01-08
40 704 Bill $95.84 2021-08-18
41 913 Joe $60.14 2021-10-13
42 433 Bob $8.53 2019-05-07
43 446.4 Matt $96.94 2019-01-27
44 883.8 Bill $80.54 2020-04-26
45 713.4 Joe $6.03 2020-12-26
46 770.6 Bob $28.44 2020-06-25
47 203.4 Matt $1.93 2021-03-15
48 680.2 Bill $55.64 2019-02-19
49 736.8 Joe $0.43 2019-03-23
50 172.8 Bob $70.84 2019-02-02
51 117.2 Matt $62.14 2020-12-29
52 109.6 Bill $5.43 2021-04-06
53 333.4 Joe $50.04 2021-03-01
54 470.4 Bob $38.44 2020-07-18
55 0.6 Matt $9.73 2020-09-26
56 741.3 Bill $86.84 2021-08-20
57 323.3 Joe $7.13 2021-09-11
58 132.9 Bob $75.14 2020-04-15
59 289.5 Matt $48.84 2020-04-19
60 474.1 Bill $66.04 2019-05-17
61 616.7 Joe $77.84 2021-05-05
62 360.2 Bob $88.74 2021-07-06
63 188.5 Matt $22.14 2019-12-05
64 985.7 Bill $69.14 2021-02-21
65 587.9 Joe $69.24 2021-06-13
66 250 Bob $43.34 2021-01-11
67 195.9 Matt $75.64 2021-04-03
68 161 Bill $88.94 2020-06-19
69 681.7 Joe $17.84 2018-11-04
70 206.3 Bob $65.24 2020-12-08
71 438.6 Matt $26.94 2020-03-25
72 291.6 Bill $62.94 2019-11-16
73 198.2 Joe $81.84 2020-07-28
74 604.9 Bob $80.34 2019-08-05
75 395.3 Matt $39.14 2021-10-14
76 282.6 Bill $64.14 2019-12-27
77 37.5 Joe $83.74 2019-03-20
78 863.4 Bob $99.84 2018-11-11
79 440.2 Matt $68.04 2019-06-05
80 504.7 Bill $88.64 2021-06-29
81 229.8 Joe $32.44 2019-03-06
82 732.5 Bob $61.64 2021-03-03
83 122.4 Matt $81.44 2020-08-04
84 733 Bill $41.94 2019-12-20
85 34.6 Joe $81.44 2021-03-17
86 27.7 Bob $9.73 2020-01-26
87 453.5 Matt $13.44 2019-07-21
88 635.2 Bill $99.74 2019-07-19
89 705.8 Joe $43.84 2021-09-12
90 954.6 Bob $94.24 2021-05-03
91 855.7 Matt $17.24 2019-03-13
92 25.6 Bill $90.44 2021-02-22
93 824.6 Joe $2.73 2020-07-22
94 441 Bob $76.04 2018-09-18
95 860.5 Matt $79.44 2021-04-17
96 671.1 Bill $82.24 2021-08-07
97 122.7 Joe $27.54 2018-11-09
98 411.2 Bob $91.04 2018-11-05
99 697.5 Matt $61.64 2020-03-26
100 663.2 Bill $57.14 2020-01-19
101 514.6 Joe $42.64 2020-08-05
102 690.2 Bob $45.24 2020-04-16
103 481.5 Matt $27.64 2020-05-17
104 86.7 Bill $71.74 2019-08-12
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 110.6 Bill $57.84 2018-12-17
1 948.5 Joe $24.94 2021-07-25
2 882.8 Bob $37.24 2019-04-08
3 951.2 Matt $78.34 2018-12-25
4 16.9 Mark $48.04 2020-12-08
5 520.1 Tom $14.34 2019-07-30
6 965.3 Jake $65.84 2020-12-04
7 582.4 Greg $34.84 2019-03-11
8 103.7 Adam $82.94 2020-01-24
9 651.7 Steve $91.64 2019-03-03
tfoot tfoot tfoot tfoot tfoot