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 246.8 Bill $63.54 2018-07-28
1 700.6 Joe $50.94 2018-07-10
2 830.1 Bob $19.04 2018-07-22
3 59.1 Matt $79.24 2020-08-27
4 206 Bill $48.14 2020-09-10
5 21.6 Joe $21.24 2020-10-03
6 968.6 Bob $4.83 2017-10-27
7 38.6 Matt $57.04 2020-07-13
8 387.5 Bill $78.44 2018-09-20
9 443.8 Joe $3.93 2018-07-03
10 105.6 Bob $28.64 2020-07-07
11 353 Matt $98.74 2018-12-17
12 585 Bill $81.74 2019-07-25
13 826.8 Joe $87.64 2018-11-26
14 731.3 Bob $8.23 2020-06-04
15 648.5 Matt $10.34 2017-12-06
16 585.5 Bill $7.23 2018-01-31
17 596.3 Joe $11.04 2019-11-22
18 462.6 Bob $49.84 2019-03-17
19 757 Matt $94.14 2019-05-01
20 982.9 Bill $4.73 2020-03-27
21 843.7 Joe $40.04 2020-03-11
22 213.4 Bob $98.54 2019-08-12
23 773.1 Matt $81.24 2019-03-21
24 125 Bill $54.34 2019-06-23
25 957.7 Joe $19.14 2019-10-20
26 2.5 Bob $77.74 2020-01-11
27 95.8 Matt $37.34 2020-05-17
28 759.4 Bill $83.64 2018-10-14
29 206.8 Joe $59.24 2018-08-07
30 693.3 Bob $57.54 2018-09-30
31 465.7 Matt $41.94 2020-01-06
32 224.5 Bill $63.24 2019-12-19
33 799.8 Joe $40.54 2019-05-15
34 250.6 Bob $53.04 2017-12-02
35 782.9 Matt $48.84 2018-07-11
36 418.1 Bill $49.04 2017-10-25
37 124.9 Joe $58.64 2018-12-31
38 941.8 Bob $34.54 2018-06-24
39 256.2 Matt $55.24 2020-05-09
40 512 Bill $24.64 2019-01-04
41 814.7 Joe $71.14 2020-05-03
42 517.2 Bob $93.64 2019-03-04
43 204.4 Matt $73.54 2020-06-15
44 703 Bill $98.64 2018-12-20
45 744.4 Joe $76.94 2020-07-06
46 976.9 Bob $18.74 2018-11-25
47 986.1 Matt $31.24 2020-10-03
48 368.2 Bill $25.34 2018-09-07
49 585.9 Joe $51.04 2020-06-07
50 396 Bob $2.23 2018-01-15
51 781.3 Matt $83.64 2020-04-17
52 585.7 Bill $35.34 2020-02-03
53 22.4 Joe $55.84 2019-04-02
54 864.4 Bob $26.14 2019-03-17
55 236.7 Matt $0.53 2018-06-22
56 97 Bill $98.24 2019-01-24
57 447.7 Joe $96.84 2020-01-20
58 384.5 Bob $33.64 2020-11-08
59 666.9 Matt $92.24 2019-04-21
60 501.4 Bill $31.84 2019-05-16
61 581.4 Joe $9.93 2018-11-07
62 372.4 Bob $68.54 2019-12-21
63 98.9 Matt $70.74 2018-07-27
64 560.8 Bill $57.24 2019-05-24
65 8.5 Joe $80.84 2019-05-30
66 224.9 Bob $90.54 2019-05-09
67 628.2 Matt $35.34 2019-04-02
68 343 Bill $73.74 2020-04-25
69 311.2 Joe $40.44 2020-01-26
70 789 Bob $90.54 2017-11-27
71 288.2 Matt $48.74 2018-03-22
72 623.7 Bill $85.94 2020-05-22
73 312.4 Joe $95.84 2019-06-18
74 558.7 Bob $51.94 2018-02-07
75 65.6 Matt $52.74 2020-08-31
76 577.5 Bill $75.24 2020-05-13
77 71.2 Joe $38.04 2018-04-25
78 532.7 Bob $72.34 2020-08-25
79 330.4 Matt $3.43 2018-10-05
80 50 Bill $82.34 2018-06-18
81 87.4 Joe $11.24 2020-01-02
82 223.9 Bob $73.54 2019-07-23
83 45.2 Matt $4.83 2019-06-05
84 573.7 Bill $60.64 2017-11-25
85 673.7 Joe $67.24 2019-07-28
86 581.9 Bob $24.94 2018-10-14
87 395.2 Matt $32.04 2019-12-28
88 561.2 Bill $85.34 2019-02-11
89 464.5 Joe $18.34 2019-03-22
90 771.9 Bob $23.34 2018-08-30
91 984.6 Matt $32.14 2019-01-06
92 684.2 Bill $54.44 2018-03-05
93 242.8 Joe $59.04 2018-04-29
94 759.5 Bob $16.34 2020-03-30
95 794.9 Matt $83.74 2019-03-16
96 357.6 Bill $41.94 2019-12-30
97 672.2 Joe $81.44 2017-11-03
98 367.1 Bob $37.54 2020-07-17
99 785.1 Matt $84.04 2017-12-15
100 237.4 Bill $61.14 2018-09-11
101 512.9 Joe $59.64 2019-09-17
102 900 Bob $28.04 2018-04-07
103 22 Matt $52.34 2020-02-19
104 191.6 Bill $28.24 2020-08-26
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 967.2 Bill $7.73 2020-02-19
1 414.4 Joe $43.54 2018-04-17
2 110.8 Bob $10.74 2020-11-14
3 127.5 Matt $47.44 2018-11-22
4 997.1 Mark $25.94 2018-05-21
5 50 Tom $49.64 2020-04-27
6 336.1 Jake $0.93 2019-01-16
7 942.8 Greg $90.94 2019-12-06
8 93.7 Adam $93.14 2018-06-02
9 834.2 Steve $12.34 2019-04-24
tfoot tfoot tfoot tfoot tfoot