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 563.7 Bill $57.24 2019-11-11
1 623.4 Joe $54.74 2019-12-01
2 136.3 Bob $29.74 2020-04-14
3 688.6 Matt $33.04 2020-12-07
4 239.8 Bill $88.94 2019-09-12
5 594.9 Joe $23.54 2019-04-05
6 65.2 Bob $23.44 2018-05-23
7 944.3 Matt $39.84 2020-08-08
8 117.1 Bill $97.54 2019-02-24
9 695.7 Joe $68.74 2018-07-03
10 249.6 Bob $25.14 2020-04-25
11 761.9 Matt $87.44 2018-11-18
12 291.6 Bill $1.03 2019-10-27
13 938 Joe $69.94 2020-11-13
14 789.1 Bob $93.84 2020-07-08
15 249.1 Matt $53.34 2021-04-06
16 571.3 Bill $59.94 2018-11-02
17 619.5 Joe $54.34 2020-02-05
18 365.7 Bob $66.04 2020-01-07
19 653.4 Matt $35.54 2019-01-09
20 737.2 Bill $60.54 2019-10-27
21 393 Joe $36.74 2019-06-03
22 595.5 Bob $65.84 2019-06-14
23 94.9 Matt $59.64 2018-07-01
24 924.7 Bill $38.54 2018-04-21
25 644 Joe $63.44 2019-12-29
26 598.3 Bob $20.64 2018-09-20
27 787.1 Matt $82.54 2020-06-09
28 373.5 Bill $19.14 2019-05-13
29 934.7 Joe $84.44 2020-06-27
30 182.9 Bob $58.14 2019-03-28
31 681.7 Matt $97.44 2020-05-25
32 54.4 Bill $57.04 2019-04-26
33 437.3 Joe $66.54 2021-03-16
34 519 Bob $58.94 2019-04-04
35 539.2 Matt $23.34 2021-04-07
36 92.7 Bill $83.14 2018-10-01
37 244.7 Joe $61.84 2021-05-13
38 939.5 Bob $99.24 2018-10-19
39 294 Matt $92.74 2018-04-21
40 3.8 Bill $10.94 2020-02-23
41 318.6 Joe $79.14 2020-01-24
42 0.2 Bob $84.54 2018-09-13
43 340 Matt $28.24 2020-10-21
44 276.1 Bill $80.24 2019-07-04
45 597.4 Joe $34.14 2020-03-30
46 553.1 Bob $43.34 2019-09-17
47 714.2 Matt $67.84 2018-07-02
48 700.5 Bill $61.74 2018-06-22
49 877.4 Joe $91.14 2018-03-29
50 898.3 Bob $91.54 2018-08-03
51 500.5 Matt $23.44 2021-02-03
52 76.9 Bill $23.44 2020-08-08
53 223 Joe $57.44 2018-05-01
54 33.6 Bob $85.04 2020-11-13
55 433.5 Matt $44.74 2018-10-12
56 66.4 Bill $0.03 2020-02-25
57 530.7 Joe $71.44 2019-02-17
58 613.4 Bob $41.54 2021-02-01
59 687.9 Matt $29.24 2020-10-21
60 688.8 Bill $19.04 2020-07-14
61 799.1 Joe $69.14 2021-04-11
62 700.2 Bob $76.84 2018-11-06
63 446.5 Matt $99.14 2020-08-31
64 475.3 Bill $2.43 2020-03-10
65 305.5 Joe $45.84 2018-06-09
66 476.2 Bob $52.44 2018-06-09
67 80.1 Matt $5.53 2020-09-13
68 361.9 Bill $66.84 2018-11-05
69 260.9 Joe $35.64 2019-10-09
70 71 Bob $4.53 2020-05-16
71 796.2 Matt $84.44 2019-05-25
72 754.8 Bill $54.44 2018-08-29
73 947 Joe $99.04 2018-08-18
74 712.9 Bob $46.64 2018-09-15
75 328.4 Matt $77.14 2020-02-27
76 391.1 Bill $24.74 2018-08-25
77 453.8 Joe $32.74 2018-10-27
78 230.9 Bob $68.94 2020-12-08
79 422.7 Matt $95.04 2018-11-24
80 906.5 Bill $2.13 2019-01-14
81 580.7 Joe $81.74 2018-07-17
82 945.6 Bob $57.24 2020-04-07
83 78.2 Matt $51.94 2020-03-27
84 201.4 Bill $23.24 2018-07-17
85 348.8 Joe $56.04 2020-12-25
86 953.9 Bob $95.14 2018-08-07
87 82.9 Matt $40.54 2019-08-21
88 266.7 Bill $63.64 2018-08-26
89 118.5 Joe $5.83 2018-06-29
90 326.2 Bob $96.54 2018-07-24
91 578.5 Matt $54.54 2021-02-23
92 674.5 Bill $49.14 2019-10-17
93 314.4 Joe $56.94 2018-04-08
94 944.6 Bob $77.04 2019-01-01
95 40.3 Matt $11.94 2020-10-10
96 907.1 Bill $7.33 2020-08-14
97 21.1 Joe $15.64 2018-09-25
98 462.4 Bob $42.24 2020-09-30
99 592.8 Matt $54.14 2020-12-06
100 673.2 Bill $86.74 2020-10-26
101 774.6 Joe $44.54 2019-05-19
102 693.1 Bob $12.04 2020-12-07
103 183.4 Matt $43.44 2019-07-28
104 192.4 Bill $37.94 2018-11-04
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 432.9 Bill $41.94 2019-03-22
1 233.4 Joe $32.64 2019-06-14
2 984.8 Bob $34.74 2019-12-11
3 141 Matt $80.94 2021-04-13
4 932.7 Mark $40.24 2019-10-30
5 782.8 Tom $7.53 2019-05-29
6 597.6 Jake $85.04 2020-10-25
7 957.8 Greg $54.34 2021-03-13
8 808.9 Adam $72.64 2019-05-28
9 229.1 Steve $91.84 2020-08-08
tfoot tfoot tfoot tfoot tfoot