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 984 Bill $63.04 2019-01-11
1 374.5 Joe $8.93 2021-02-23
2 685.1 Bob $13.04 2018-11-05
3 393.9 Matt $3.93 2019-02-14
4 240.1 Bill $58.84 2019-11-23
5 695.6 Joe $76.84 2020-06-29
6 206 Bob $51.74 2019-11-09
7 846 Matt $49.34 2021-01-03
8 527.4 Bill $53.44 2021-09-11
9 289.6 Joe $70.84 2021-08-14
10 404.8 Bob $69.24 2020-06-12
11 548.3 Matt $6.63 2020-09-23
12 360.4 Bill $75.14 2021-02-21
13 446.3 Joe $14.54 2021-04-06
14 619.3 Bob $38.54 2019-12-17
15 35.9 Matt $8.13 2019-03-23
16 641.5 Bill $28.64 2020-11-10
17 46.6 Joe $13.24 2019-04-03
18 815.4 Bob $66.04 2020-12-11
19 801 Matt $94.94 2020-01-08
20 762.2 Bill $35.44 2019-01-16
21 353.7 Joe $90.24 2019-04-02
22 34.3 Bob $26.34 2021-08-19
23 844.8 Matt $70.94 2018-12-03
24 693.9 Bill $32.84 2020-02-22
25 131.2 Joe $36.44 2020-05-25
26 336.2 Bob $0.63 2021-04-21
27 57.9 Matt $5.23 2021-09-21
28 272.3 Bill $86.84 2020-08-24
29 21.1 Joe $66.84 2020-06-26
30 477.5 Bob $43.14 2021-08-10
31 625.5 Matt $78.44 2021-04-19
32 839.6 Bill $81.84 2018-12-18
33 804.7 Joe $66.34 2021-03-17
34 914.7 Bob $35.74 2019-01-30
35 409.7 Matt $48.84 2020-03-26
36 985.3 Bill $82.44 2020-04-02
37 847.2 Joe $88.24 2020-06-01
38 841.6 Bob $15.44 2019-12-31
39 495.7 Matt $17.64 2018-12-12
40 99.2 Bill $65.34 2020-04-23
41 56.8 Joe $27.84 2019-08-17
42 916.7 Bob $11.84 2019-01-19
43 39.4 Matt $92.34 2021-02-25
44 871.2 Bill $83.74 2019-02-11
45 31.2 Joe $24.74 2020-08-29
46 555.4 Bob $23.24 2020-02-08
47 85.1 Matt $7.93 2019-09-24
48 666.9 Bill $92.14 2020-03-21
49 116.2 Joe $41.64 2020-10-10
50 233.8 Bob $51.64 2019-09-04
51 781.9 Matt $57.24 2020-07-23
52 114.2 Bill $48.94 2020-12-06
53 264.9 Joe $52.84 2020-09-07
54 78.7 Bob $40.04 2020-03-03
55 249.5 Matt $43.14 2020-12-14
56 908.3 Bill $98.64 2021-09-08
57 391.4 Joe $7.13 2018-10-08
58 756.7 Bob $73.84 2021-09-08
59 276.3 Matt $85.44 2019-11-03
60 971.4 Bill $8.83 2021-06-21
61 319.5 Joe $87.04 2020-02-12
62 945.9 Bob $98.44 2021-08-31
63 690.2 Matt $24.94 2020-03-03
64 357.1 Bill $32.74 2021-06-09
65 861 Joe $57.74 2019-08-20
66 611.8 Bob $48.54 2019-08-03
67 594.7 Matt $87.74 2019-10-25
68 656.7 Bill $63.34 2018-12-25
69 639.5 Joe $90.94 2021-09-09
70 38.8 Bob $88.14 2018-10-19
71 953.6 Matt $20.04 2021-07-21
72 440.7 Bill $14.64 2021-07-02
73 416.7 Joe $83.64 2019-02-14
74 921.1 Bob $19.34 2020-02-28
75 824.9 Matt $5.43 2018-10-26
76 159.3 Bill $66.64 2020-05-09
77 479.7 Joe $26.14 2019-12-18
78 871 Bob $91.74 2018-10-20
79 0.1 Matt $55.74 2021-09-06
80 983.3 Bill $59.54 2021-04-21
81 54.1 Joe $54.94 2018-10-08
82 994.6 Bob $99.04 2019-03-26
83 918.9 Matt $40.64 2018-09-18
84 91.9 Bill $32.74 2019-04-29
85 592.2 Joe $15.24 2019-07-01
86 669.3 Bob $31.24 2021-08-10
87 231.5 Matt $79.14 2019-04-07
88 670.2 Bill $66.24 2019-01-01
89 742 Joe $66.24 2020-10-06
90 723.2 Bob $64.54 2019-06-26
91 585 Matt $70.04 2021-03-22
92 647 Bill $69.44 2021-03-10
93 855 Joe $61.34 2019-04-23
94 899.1 Bob $70.54 2020-05-06
95 136.3 Matt $29.74 2020-10-29
96 427.8 Bill $96.64 2018-08-24
97 385.1 Joe $19.84 2021-02-25
98 603 Bob $86.84 2020-01-31
99 738.1 Matt $61.04 2019-01-05
100 429.9 Bill $33.34 2021-01-21
101 717.2 Joe $91.84 2020-02-08
102 553.4 Bob $56.54 2019-02-19
103 379.2 Matt $42.04 2021-01-28
104 611.3 Bill $31.94 2020-02-21
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 170.7 Bill $45.54 2021-01-30
1 882.3 Joe $88.34 2020-12-22
2 905.5 Bob $26.84 2021-08-07
3 719.8 Matt $87.14 2021-03-07
4 196.1 Mark $60.94 2019-12-11
5 334.5 Tom $3.93 2020-12-31
6 118.3 Jake $75.64 2020-09-27
7 601.6 Greg $30.94 2019-05-12
8 778.9 Adam $68.84 2020-09-08
9 569 Steve $29.94 2021-09-12
tfoot tfoot tfoot tfoot tfoot