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 885.2 Bill $82.24 2019-11-01
1 949.3 Joe $23.84 2018-10-29
2 570.7 Bob $40.34 2021-01-31
3 972.5 Matt $35.84 2018-04-01
4 977 Bill $53.34 2018-05-06
5 772.2 Joe $19.44 2020-01-23
6 938.5 Bob $68.54 2018-12-17
7 722.2 Matt $99.54 2020-10-15
8 272.2 Bill $27.54 2018-09-28
9 996.1 Joe $66.54 2020-09-27
10 934.5 Bob $55.14 2020-03-05
11 437.6 Matt $50.04 2020-12-06
12 623.4 Bill $7.13 2019-01-15
13 522.1 Joe $4.33 2020-03-04
14 525.1 Bob $2.03 2018-09-11
15 558.8 Matt $79.24 2019-04-23
16 133.8 Bill $73.14 2018-04-23
17 361.3 Joe $45.34 2018-04-18
18 166.2 Bob $72.54 2019-03-02
19 325.3 Matt $72.14 2021-04-11
20 115 Bill $65.54 2019-11-07
21 726.4 Joe $9.33 2018-04-08
22 576 Bob $71.64 2018-06-28
23 828.7 Matt $23.84 2018-08-17
24 439.7 Bill $76.34 2018-09-09
25 583.6 Joe $32.24 2021-03-14
26 920.9 Bob $45.64 2020-05-06
27 943.6 Matt $81.74 2018-08-12
28 961.7 Bill $98.34 2020-11-27
29 254.7 Joe $30.94 2020-01-09
30 213.1 Bob $42.44 2018-12-06
31 722.2 Matt $15.04 2019-03-24
32 731.2 Bill $72.64 2018-04-29
33 810.7 Joe $55.54 2019-01-30
34 933.2 Bob $99.44 2018-05-01
35 75.7 Matt $57.84 2019-05-09
36 10.2 Bill $49.94 2020-10-18
37 675.3 Joe $44.24 2020-03-20
38 793.1 Bob $40.44 2020-03-01
39 635.7 Matt $65.84 2021-02-21
40 199.1 Bill $87.14 2019-04-25
41 417.9 Joe $59.44 2019-10-16
42 729.5 Bob $32.54 2018-12-03
43 757.3 Matt $13.54 2020-09-04
44 23.3 Bill $6.83 2020-08-28
45 52.6 Joe $14.44 2019-04-28
46 404.1 Bob $15.44 2020-11-24
47 211.4 Matt $83.04 2019-02-18
48 835.9 Bill $62.34 2020-05-30
49 443.7 Joe $25.84 2019-04-30
50 360 Bob $45.74 2018-12-02
51 699.7 Matt $87.54 2020-10-19
52 189.3 Bill $60.54 2018-08-29
53 404.7 Joe $36.24 2019-02-02
54 174.6 Bob $38.54 2019-04-22
55 938.5 Matt $43.84 2019-10-06
56 280.1 Bill $84.24 2020-04-02
57 120.1 Joe $5.33 2019-09-17
58 402.1 Bob $88.94 2018-07-07
59 87.7 Matt $33.34 2019-05-02
60 431.4 Bill $69.24 2020-10-12
61 646.5 Joe $39.24 2020-05-21
62 455 Bob $58.14 2019-02-18
63 588 Matt $98.64 2020-04-12
64 856.4 Bill $16.14 2018-05-01
65 193.3 Joe $9.93 2019-09-19
66 674.3 Bob $37.94 2019-03-20
67 309.6 Matt $49.94 2019-05-20
68 774.4 Bill $90.14 2019-01-12
69 861.9 Joe $98.94 2020-01-31
70 207.5 Bob $42.04 2019-02-09
71 10.3 Matt $6.73 2020-05-08
72 688.3 Bill $52.24 2019-01-10
73 970.7 Joe $11.04 2018-12-25
74 614.8 Bob $96.64 2019-06-28
75 643.9 Matt $15.94 2019-10-21
76 110.5 Bill $83.34 2021-01-02
77 418.6 Joe $14.34 2019-06-02
78 779.8 Bob $91.74 2019-02-08
79 29.7 Matt $77.94 2019-01-26
80 612.2 Bill $98.74 2020-05-26
81 887.1 Joe $99.74 2020-08-11
82 554.2 Bob $68.54 2019-02-05
83 802.6 Matt $65.64 2019-06-11
84 37 Bill $27.14 2019-05-03
85 432 Joe $91.44 2019-11-03
86 926.1 Bob $2.53 2019-04-24
87 799.2 Matt $44.34 2019-10-07
88 171.4 Bill $22.34 2019-07-03
89 444.8 Joe $25.34 2018-10-20
90 707 Bob $86.54 2018-10-05
91 389.5 Matt $75.24 2018-10-01
92 138.6 Bill $30.64 2020-12-02
93 409.3 Joe $10.94 2019-10-30
94 789.5 Bob $14.64 2020-09-08
95 135.7 Matt $57.84 2020-05-31
96 641 Bill $50.44 2020-06-29
97 979.6 Joe $30.34 2018-09-24
98 461.2 Bob $47.44 2019-06-09
99 860.1 Matt $91.94 2020-03-28
100 38.1 Bill $62.64 2019-10-23
101 202.6 Joe $1.53 2019-01-09
102 364 Bob $15.44 2019-12-30
103 210.4 Matt $56.34 2020-05-03
104 712.5 Bill $35.34 2020-10-19
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 485.2 Bill $48.84 2019-06-18
1 172.3 Joe $12.94 2021-01-21
2 884.1 Bob $10.94 2018-11-06
3 39.3 Matt $57.04 2020-05-08
4 417.6 Mark $43.04 2020-02-04
5 48.6 Tom $46.84 2018-11-28
6 544.5 Jake $67.14 2018-12-16
7 792.4 Greg $3.53 2019-06-12
8 346.5 Adam $24.54 2021-03-25
9 9.3 Steve $95.84 2019-03-07
tfoot tfoot tfoot tfoot tfoot