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 20.9 Bill $98.84 2020-06-10
1 141.9 Joe $23.64 2018-10-22
2 357.2 Bob $51.04 2018-08-09
3 75.5 Matt $48.44 2018-06-23
4 180.6 Bill $26.84 2018-10-14
5 286.1 Joe $31.44 2017-12-22
6 591.2 Bob $84.04 2019-12-17
7 50 Matt $39.04 2018-04-09
8 472.2 Bill $74.54 2017-10-13
9 920.5 Joe $5.13 2018-01-25
10 71.7 Bob $7.23 2018-01-11
11 975.1 Matt $21.44 2018-10-11
12 363 Bill $57.14 2020-05-24
13 686.8 Joe $64.64 2018-10-05
14 969.5 Bob $82.74 2019-08-11
15 349.7 Matt $11.34 2020-08-08
16 474.5 Bill $70.44 2020-02-04
17 226 Joe $75.44 2018-03-01
18 443.7 Bob $22.64 2020-07-10
19 507.7 Matt $14.74 2020-09-07
20 661.8 Bill $21.84 2017-09-29
21 804 Joe $19.34 2018-06-03
22 182.4 Bob $55.64 2020-03-25
23 70.6 Matt $24.34 2019-02-09
24 443 Bill $21.24 2018-07-24
25 83.4 Joe $56.24 2018-12-01
26 37.6 Bob $3.63 2017-12-24
27 831.2 Matt $26.24 2020-05-14
28 15.3 Bill $70.64 2017-12-01
29 944.7 Joe $21.44 2018-05-19
30 925 Bob $87.54 2019-01-27
31 977.2 Matt $68.04 2019-09-07
32 243 Bill $86.24 2018-04-11
33 79.7 Joe $93.24 2019-01-17
34 562.6 Bob $37.54 2019-09-20
35 872.3 Matt $45.94 2018-05-01
36 294.7 Bill $49.64 2018-06-12
37 421.1 Joe $32.74 2019-04-11
38 301.5 Bob $34.34 2018-05-06
39 407.8 Matt $28.74 2019-01-08
40 660.6 Bill $21.24 2018-08-17
41 131.5 Joe $18.94 2017-08-11
42 795.5 Bob $43.24 2020-05-05
43 15.5 Matt $51.24 2020-02-16
44 478.4 Bill $7.53 2018-02-23
45 153.5 Joe $94.74 2019-08-08
46 390.5 Bob $24.14 2018-01-02
47 663.8 Matt $66.24 2019-01-16
48 199.4 Bill $96.44 2020-02-17
49 441 Joe $37.24 2017-11-14
50 896.2 Bob $3.23 2018-07-17
51 226.8 Matt $16.44 2019-02-21
52 236.9 Bill $95.94 2020-07-06
53 108.8 Joe $97.54 2018-12-19
54 913 Bob $45.34 2019-03-15
55 92.7 Matt $60.64 2019-01-13
56 731 Bill $99.74 2019-10-19
57 865.6 Joe $66.04 2018-09-23
58 327.5 Bob $86.04 2018-08-13
59 132 Matt $30.14 2019-10-17
60 223.7 Bill $19.74 2019-11-23
61 527.6 Joe $42.44 2020-05-30
62 20.8 Bob $66.04 2020-04-13
63 946.5 Matt $76.94 2020-03-14
64 384.1 Bill $68.24 2018-06-20
65 896.2 Joe $77.54 2020-05-22
66 355.1 Bob $50.64 2020-05-18
67 55.4 Matt $37.14 2019-04-21
68 418.2 Bill $69.94 2018-11-09
69 744.9 Joe $83.14 2019-10-23
70 443.2 Bob $5.43 2020-06-07
71 173.7 Matt $58.24 2018-08-10
72 67.7 Bill $60.34 2020-09-12
73 920.6 Joe $54.94 2019-12-20
74 748.1 Bob $93.34 2018-12-17
75 28.3 Matt $82.94 2018-03-31
76 914.7 Bill $18.44 2019-11-07
77 797.9 Joe $24.04 2017-11-09
78 341.4 Bob $65.84 2020-01-26
79 744.8 Matt $40.24 2019-07-14
80 448.8 Bill $84.64 2019-09-15
81 349.6 Joe $1.93 2018-05-19
82 674 Bob $8.73 2020-04-15
83 658.8 Matt $0.83 2018-11-10
84 412.8 Bill $75.64 2018-08-25
85 848.7 Joe $78.44 2018-02-08
86 59.4 Bob $69.84 2018-09-09
87 775.8 Matt $49.64 2019-06-13
88 863.3 Bill $83.84 2018-05-13
89 649.5 Joe $58.24 2019-08-22
90 266.3 Bob $3.13 2019-02-24
91 937.2 Matt $38.14 2019-03-19
92 189.9 Bill $5.53 2019-06-27
93 45.1 Joe $71.34 2019-07-06
94 449.3 Bob $12.64 2018-09-26
95 786.5 Matt $97.54 2018-01-19
96 952.7 Bill $3.43 2020-04-06
97 303.1 Joe $81.04 2018-09-01
98 893.1 Bob $67.34 2018-02-25
99 140.7 Matt $32.34 2019-12-31
100 790.7 Bill $58.94 2020-02-05
101 286.5 Joe $52.64 2018-02-18
102 801.5 Bob $71.64 2018-04-22
103 403.4 Matt $76.14 2020-07-26
104 12.8 Bill $21.04 2017-10-19
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 377.7 Bill $99.74 2017-09-20
1 526.3 Joe $94.94 2017-10-29
2 373.3 Bob $25.24 2020-05-24
3 716.6 Matt $14.64 2019-05-12
4 897.5 Mark $28.64 2020-05-19
5 660.8 Tom $7.73 2019-01-29
6 455.1 Jake $36.34 2020-09-29
7 630.2 Greg $16.54 2019-11-05
8 860 Adam $56.84 2019-02-02
9 803.2 Steve $58.14 2019-10-03
tfoot tfoot tfoot tfoot tfoot