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 907.8 Bill $34.54 2021-01-21
1 384.8 Joe $70.54 2020-02-07
2 332.6 Bob $45.34 2020-05-19
3 761.7 Matt $49.24 2021-01-08
4 199.9 Bill $94.04 2020-10-29
5 526.2 Joe $80.54 2017-12-30
6 756.1 Bob $30.64 2019-09-11
7 242.3 Matt $32.74 2020-05-23
8 552.7 Bill $35.24 2019-07-08
9 509.2 Joe $64.44 2018-08-22
10 510.6 Bob $55.14 2019-09-26
11 481.4 Matt $93.64 2018-10-20
12 151.1 Bill $26.94 2020-03-27
13 909 Joe $3.03 2018-08-17
14 869 Bob $23.04 2018-06-09
15 767.1 Matt $75.64 2020-12-27
16 772.4 Bill $51.24 2018-10-15
17 312.9 Joe $75.54 2019-10-28
18 74.4 Bob $30.74 2020-12-09
19 558.6 Matt $81.64 2019-10-23
20 767.1 Bill $32.74 2018-05-22
21 321 Joe $80.84 2018-03-09
22 579.8 Bob $95.94 2019-01-13
23 291.7 Matt $86.84 2019-02-18
24 495.4 Bill $73.74 2019-11-11
25 639.6 Joe $50.44 2019-02-02
26 589 Bob $27.74 2020-09-17
27 843.8 Matt $59.04 2019-12-08
28 425.2 Bill $66.44 2020-11-27
29 358.7 Joe $22.24 2020-04-29
30 935.7 Bob $99.04 2018-03-12
31 64 Matt $31.04 2020-10-02
32 128.4 Bill $89.04 2020-08-16
33 461.4 Joe $18.24 2020-03-17
34 824.7 Bob $67.74 2019-05-18
35 418 Matt $31.74 2020-12-21
36 767.5 Bill $90.64 2018-09-06
37 629.3 Joe $74.94 2020-07-19
38 245.7 Bob $17.44 2019-06-26
39 169.3 Matt $53.34 2020-03-09
40 909.3 Bill $46.94 2020-02-26
41 976.3 Joe $53.34 2021-02-19
42 851.6 Bob $66.14 2020-10-15
43 686.3 Matt $12.24 2018-03-13
44 389.3 Bill $94.74 2020-05-05
45 829.4 Joe $36.54 2018-03-06
46 773.8 Bob $13.24 2021-01-17
47 994.8 Matt $76.24 2020-04-02
48 805.2 Bill $0.73 2020-10-21
49 279.3 Joe $17.74 2019-04-29
50 975.8 Bob $8.63 2020-10-23
51 661.7 Matt $6.23 2019-05-01
52 658 Bill $91.44 2018-04-04
53 544.5 Joe $60.04 2018-08-23
54 612.7 Bob $98.94 2018-06-23
55 358.1 Matt $81.84 2019-08-20
56 420.1 Bill $59.24 2020-01-20
57 387.7 Joe $58.74 2019-04-19
58 104.6 Bob $39.24 2019-04-27
59 995.9 Matt $67.14 2019-11-18
60 420.2 Bill $64.74 2020-02-25
61 313.3 Joe $30.94 2020-05-07
62 739 Bob $96.74 2020-01-28
63 825.8 Matt $51.14 2018-10-21
64 35.1 Bill $12.44 2018-10-09
65 191.6 Joe $48.24 2018-03-12
66 713 Bob $90.24 2020-01-27
67 366.8 Matt $28.94 2018-10-05
68 782.3 Bill $39.44 2020-01-02
69 205.1 Joe $39.04 2018-12-18
70 804.3 Bob $81.04 2021-01-04
71 489.4 Matt $12.34 2018-10-27
72 236.4 Bill $86.24 2018-09-18
73 896.9 Joe $68.84 2020-05-02
74 157.2 Bob $72.34 2020-09-22
75 406.5 Matt $91.54 2019-01-31
76 474.2 Bill $62.74 2018-10-10
77 134 Joe $99.44 2019-09-09
78 380.5 Bob $77.64 2020-12-08
79 19 Matt $98.14 2019-01-02
80 328.7 Bill $78.64 2018-05-27
81 285.3 Joe $27.54 2018-10-16
82 550.5 Bob $51.14 2018-05-10
83 782.3 Matt $40.84 2020-07-14
84 525.2 Bill $56.54 2019-08-28
85 391.8 Joe $97.24 2019-05-21
86 740.1 Bob $44.64 2018-03-16
87 990.2 Matt $58.04 2018-03-09
88 529.7 Bill $96.04 2020-08-23
89 463 Joe $97.94 2020-08-02
90 786.1 Bob $30.84 2019-11-28
91 919.1 Matt $59.34 2020-10-11
92 175.1 Bill $14.44 2019-03-25
93 293.2 Joe $92.64 2020-07-10
94 99.1 Bob $45.14 2019-02-22
95 627.8 Matt $84.34 2019-01-21
96 71 Bill $58.34 2020-06-20
97 141.6 Joe $57.34 2019-02-19
98 206.2 Bob $10.34 2019-01-04
99 47.1 Matt $56.64 2018-12-11
100 869.4 Bill $35.24 2019-12-03
101 477.4 Joe $27.14 2018-08-19
102 360.2 Bob $44.64 2019-02-01
103 754.3 Matt $73.94 2018-11-07
104 556.5 Bill $83.84 2020-04-12
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 923.9 Bill $46.64 2019-10-13
1 263.1 Joe $53.74 2018-06-17
2 48.2 Bob $67.84 2020-04-10
3 413 Matt $88.44 2020-08-07
4 738.2 Mark $93.24 2019-03-23
5 42.5 Tom $80.14 2020-05-03
6 654.7 Jake $27.84 2018-01-10
7 859.9 Greg $63.84 2019-06-10
8 208.8 Adam $39.34 2018-08-12
9 483.4 Steve $94.94 2018-02-05
tfoot tfoot tfoot tfoot tfoot