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 535 Bill $30.64 2019-08-30
1 530.7 Joe $28.44 2021-07-28
2 531.3 Bob $26.24 2021-03-01
3 73 Matt $58.84 2020-06-17
4 290.6 Bill $48.14 2021-04-15
5 575.9 Joe $97.34 2020-03-15
6 323.8 Bob $74.84 2019-04-22
7 283.4 Matt $70.34 2021-11-27
8 127 Bill $16.54 2019-09-07
9 22.1 Joe $39.04 2021-06-03
10 128.8 Bob $92.54 2019-03-23
11 347.4 Matt $45.64 2020-02-15
12 169.5 Bill $98.74 2020-12-14
13 862.4 Joe $6.03 2019-08-25
14 333.2 Bob $35.14 2021-03-04
15 64.7 Matt $92.74 2021-02-02
16 454.8 Bill $25.14 2020-04-16
17 560.7 Joe $53.44 2019-05-09
18 488.1 Bob $66.14 2019-11-15
19 713.9 Matt $68.34 2021-02-09
20 488 Bill $81.24 2020-11-15
21 568.5 Joe $15.94 2019-02-24
22 933 Bob $32.84 2019-02-09
23 559.5 Matt $19.14 2019-04-20
24 774.2 Bill $52.44 2020-05-30
25 470 Joe $58.84 2020-03-06
26 139.2 Bob $4.33 2020-12-21
27 556.5 Matt $60.44 2019-06-30
28 677.2 Bill $9.23 2021-08-03
29 962.6 Joe $80.54 2020-08-01
30 638.4 Bob $29.44 2019-12-26
31 239.6 Matt $86.24 2020-06-27
32 296.9 Bill $79.54 2021-07-12
33 341.4 Joe $35.44 2022-02-18
34 446 Bob $12.84 2020-08-15
35 901.4 Matt $59.84 2019-04-27
36 283.4 Bill $73.84 2019-06-16
37 915.8 Joe $29.44 2021-05-14
38 82 Bob $97.14 2021-08-28
39 908.8 Matt $93.44 2021-01-15
40 418.4 Bill $57.24 2021-12-21
41 739.4 Joe $81.24 2021-07-14
42 219.2 Bob $10.84 2020-11-18
43 27.2 Matt $45.04 2022-01-02
44 25.8 Bill $89.64 2019-03-30
45 548 Joe $79.74 2021-02-20
46 658.5 Bob $8.13 2020-04-22
47 812 Matt $99.64 2021-03-28
48 569 Bill $7.83 2021-02-23
49 417.7 Joe $98.74 2020-12-08
50 71.9 Bob $40.54 2019-08-01
51 19.5 Matt $14.54 2018-12-26
52 829 Bill $36.44 2019-04-30
53 433.2 Joe $39.14 2020-10-02
54 391.7 Bob $41.74 2020-06-03
55 478.5 Matt $96.54 2019-10-12
56 163.6 Bill $62.34 2020-01-13
57 586.3 Joe $43.54 2020-01-09
58 302.8 Bob $0.43 2020-04-08
59 990.5 Matt $42.24 2020-03-24
60 611.8 Bill $49.44 2021-07-06
61 805 Joe $51.34 2021-12-20
62 809.9 Bob $34.24 2019-12-15
63 923.2 Matt $77.54 2021-03-12
64 486.2 Bill $16.74 2019-05-07
65 944.9 Joe $64.54 2019-03-27
66 200.6 Bob $80.94 2021-03-17
67 536.8 Matt $39.54 2019-06-02
68 869.2 Bill $69.84 2019-06-07
69 279.7 Joe $68.84 2020-10-07
70 677.1 Bob $30.04 2019-03-01
71 479.8 Matt $10.54 2020-10-15
72 427.2 Bill $91.54 2021-11-15
73 738.3 Joe $83.84 2021-02-28
74 440.4 Bob $32.44 2021-09-09
75 559.3 Matt $26.94 2020-07-25
76 643 Bill $46.94 2019-12-17
77 349.8 Joe $0.63 2021-03-18
78 491.8 Bob $87.54 2020-04-02
79 637.9 Matt $15.54 2019-04-07
80 205.7 Bill $83.24 2020-03-19
81 267.2 Joe $31.24 2020-07-19
82 841.9 Bob $73.94 2020-04-11
83 758.5 Matt $47.74 2019-10-06
84 450.4 Bill $91.84 2020-10-15
85 309 Joe $47.74 2021-08-22
86 812.8 Bob $12.04 2019-12-17
87 125.4 Matt $47.04 2019-12-24
88 833 Bill $96.14 2019-08-01
89 238.4 Joe $59.94 2020-01-28
90 332 Bob $80.54 2019-07-17
91 725.5 Matt $7.23 2020-07-12
92 223.9 Bill $91.44 2019-09-13
93 637 Joe $67.24 2021-03-18
94 887.9 Bob $12.34 2020-12-13
95 462.7 Matt $43.14 2019-04-17
96 306.2 Bill $24.44 2019-09-03
97 619 Joe $37.04 2021-02-27
98 937.8 Bob $20.24 2021-01-13
99 131.7 Matt $44.14 2019-10-07
100 480.5 Bill $77.34 2019-02-23
101 661.1 Joe $49.84 2019-05-17
102 153.4 Bob $72.24 2019-02-07
103 384.4 Matt $35.94 2021-03-26
104 92.5 Bill $24.74 2021-08-15
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 718.1 Bill $71.04 2019-10-26
1 820.3 Joe $1.63 2020-08-04
2 42.3 Bob $63.54 2021-10-06
3 733.6 Matt $57.24 2019-03-28
4 386.3 Mark $70.44 2020-08-19
5 637.9 Tom $18.44 2019-11-30
6 694.4 Jake $84.54 2021-06-29
7 822.7 Greg $99.94 2020-08-11
8 864.8 Adam $38.34 2021-10-01
9 579.2 Steve $47.64 2019-05-13
tfoot tfoot tfoot tfoot tfoot