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 161 Bill $99.84 2019-01-16
1 675.7 Joe $7.93 2019-02-17
2 541.9 Bob $49.24 2019-06-07
3 203 Matt $45.54 2019-01-01
4 899.7 Bill $45.54 2018-11-19
5 214.3 Joe $41.54 2019-03-04
6 681 Bob $19.64 2017-09-19
7 56.2 Matt $19.14 2017-06-20
8 280 Bill $8.73 2017-01-09
9 422.5 Joe $69.24 2020-01-05
10 835.4 Bob $85.34 2020-01-02
11 515.2 Matt $52.94 2017-01-31
12 222.5 Bill $7.03 2018-08-23
13 24.7 Joe $27.34 2016-11-30
14 691.6 Bob $17.34 2018-05-11
15 321.1 Matt $38.74 2019-09-03
16 41 Bill $6.83 2017-02-15
17 302.4 Joe $12.44 2017-09-24
18 485.1 Bob $40.44 2018-01-03
19 528.2 Matt $82.74 2017-01-11
20 513.5 Bill $66.24 2019-09-25
21 496.2 Joe $17.74 2018-03-28
22 557.9 Bob $40.04 2018-06-18
23 111.3 Matt $42.44 2019-04-30
24 119.7 Bill $11.64 2019-11-16
25 582.7 Joe $43.74 2017-12-06
26 461.3 Bob $47.84 2018-02-23
27 536 Matt $78.04 2018-07-17
28 801.8 Bill $26.54 2019-10-28
29 154.3 Joe $79.34 2019-04-10
30 198.7 Bob $30.74 2018-03-15
31 95.8 Matt $80.34 2018-10-05
32 521.4 Bill $36.14 2020-01-11
33 17.3 Joe $47.24 2018-03-15
34 786.4 Bob $59.14 2018-07-27
35 728.3 Matt $17.44 2019-12-15
36 57.3 Bill $63.54 2018-04-19
37 454.4 Joe $17.14 2017-08-08
38 975.6 Bob $97.34 2018-06-10
39 901 Matt $12.74 2017-10-14
40 652.9 Bill $32.64 2018-10-04
41 66.7 Joe $42.24 2018-02-17
42 657.5 Bob $94.34 2019-04-11
43 647.9 Matt $96.04 2017-08-07
44 62.4 Bill $74.74 2019-06-23
45 592.6 Joe $47.54 2020-01-10
46 559.5 Bob $53.24 2018-11-14
47 4.1 Matt $98.74 2019-06-01
48 228.7 Bill $96.24 2019-04-30
49 718.3 Joe $86.34 2019-09-25
50 1.1 Bob $51.64 2017-08-05
51 590.5 Matt $58.34 2018-12-06
52 982.6 Bill $24.04 2018-10-01
53 735.2 Joe $88.84 2018-08-16
54 959.7 Bob $95.04 2017-10-27
55 775.6 Matt $54.34 2019-04-30
56 765.6 Bill $10.24 2017-11-04
57 391 Joe $10.64 2017-10-20
58 187.6 Bob $33.54 2017-09-06
59 957.2 Matt $5.33 2017-03-31
60 854.1 Bill $5.43 2018-11-18
61 76.8 Joe $64.54 2017-07-23
62 721.2 Bob $62.74 2018-04-27
63 308.7 Matt $36.24 2017-12-18
64 856.3 Bill $32.24 2017-10-22
65 150.6 Joe $9.83 2019-07-12
66 919.7 Bob $86.34 2019-11-07
67 220.9 Matt $25.44 2017-01-07
68 508.6 Bill $44.24 2018-01-29
69 758.4 Joe $39.94 2018-04-01
70 871.1 Bob $25.34 2018-06-03
71 499.8 Matt $33.04 2017-04-18
72 711.1 Bill $5.13 2019-04-14
73 162.4 Joe $35.94 2017-04-06
74 501.6 Bob $21.64 2018-04-13
75 791 Matt $36.64 2018-08-04
76 623.2 Bill $28.64 2018-02-27
77 557.7 Joe $50.74 2018-12-18
78 598.5 Bob $1.53 2017-03-12
79 974.3 Matt $77.44 2018-06-16
80 403.2 Bill $64.54 2019-04-05
81 886.5 Joe $14.54 2017-02-18
82 14.4 Bob $85.64 2017-04-18
83 769.5 Matt $1.83 2018-06-08
84 887 Bill $52.04 2019-02-12
85 326.6 Joe $31.04 2017-02-09
86 863.8 Bob $93.44 2018-01-06
87 264.2 Matt $49.14 2019-08-15
88 918.8 Bill $9.03 2019-09-02
89 14.9 Joe $6.43 2018-12-14
90 509.8 Bob $46.74 2017-10-29
91 257.5 Matt $35.44 2018-04-14
92 334.8 Bill $36.84 2017-10-29
93 462.9 Joe $13.74 2017-11-19
94 950.3 Bob $2.43 2019-07-13
95 653.5 Matt $35.14 2017-05-06
96 722.9 Bill $21.54 2017-02-18
97 78.1 Joe $47.94 2018-09-09
98 940.2 Bob $39.84 2018-12-22
99 817.6 Matt $41.24 2019-03-06
100 468.6 Bill $92.24 2017-06-27
101 764.4 Joe $18.04 2018-08-10
102 204.7 Bob $51.54 2019-10-10
103 500.5 Matt $97.74 2017-01-15
104 814.2 Bill $92.84 2017-02-12
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 647.3 Bill $58.14 2018-03-25
1 790.8 Joe $30.44 2018-11-29
2 867.9 Bob $38.24 2017-04-05
3 436.1 Matt $32.24 2018-07-09
4 94.1 Mark $14.04 2019-10-29
5 815.9 Tom $60.84 2019-07-31
6 4.9 Jake $37.24 2016-12-24
7 547.4 Greg $57.74 2018-08-11
8 457.7 Adam $7.83 2018-07-16
9 505.5 Steve $89.24 2018-04-23
tfoot tfoot tfoot tfoot tfoot