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 42.3 Bill $73.84 2017-12-24
1 780.5 Joe $32.74 2018-04-04
2 413.8 Bob $71.34 2019-07-03
3 352.4 Matt $6.73 2017-06-25
4 816.7 Bill $28.14 2019-04-17
5 695.1 Joe $51.74 2019-05-26
6 338.2 Bob $79.44 2017-05-28
7 90.9 Matt $6.53 2017-10-26
8 192.6 Bill $92.84 2018-08-19
9 261.5 Joe $36.84 2017-06-23
10 495.9 Bob $41.04 2016-08-23
11 938.7 Matt $19.14 2017-09-05
12 468.6 Bill $60.54 2016-10-09
13 392.2 Joe $95.74 2016-12-25
14 677.5 Bob $77.34 2017-11-15
15 534.3 Matt $46.94 2019-07-07
16 424.6 Bill $80.74 2018-11-10
17 685.8 Joe $89.84 2019-01-25
18 77.2 Bob $9.03 2018-11-03
19 725.4 Matt $35.24 2016-11-01
20 9.4 Bill $84.74 2018-02-19
21 31 Joe $78.64 2018-09-28
22 379.2 Bob $25.54 2017-06-27
23 440.8 Matt $64.74 2017-05-08
24 569.5 Bill $32.44 2016-08-19
25 978.8 Joe $85.84 2018-02-12
26 905.5 Bob $28.34 2017-07-03
27 626 Matt $96.94 2017-03-06
28 411.6 Bill $4.63 2017-06-19
29 125.4 Joe $77.14 2018-07-31
30 207.1 Bob $78.14 2018-02-04
31 699.2 Matt $81.24 2017-06-01
32 381.9 Bill $19.14 2018-03-23
33 669.1 Joe $63.24 2017-02-07
34 913.1 Bob $20.14 2018-02-17
35 930.5 Matt $18.04 2017-09-06
36 416.4 Bill $8.53 2018-07-31
37 709 Joe $71.14 2018-06-25
38 899.2 Bob $12.34 2018-08-17
39 179.4 Matt $24.84 2017-11-25
40 811.1 Bill $45.54 2017-03-16
41 290.2 Joe $15.44 2016-08-10
42 555.4 Bob $53.64 2017-03-19
43 75.2 Matt $20.54 2019-03-20
44 241.7 Bill $11.84 2016-09-06
45 732.3 Joe $4.93 2017-04-03
46 81.3 Bob $46.54 2017-07-10
47 713.3 Matt $17.44 2016-08-10
48 314 Bill $7.33 2016-12-30
49 960.6 Joe $25.24 2017-10-13
50 378.5 Bob $6.33 2019-03-24
51 577.1 Matt $35.44 2019-09-18
52 587.4 Bill $90.94 2018-03-30
53 788.5 Joe $98.44 2018-11-22
54 621.1 Bob $22.64 2019-04-08
55 654.8 Matt $95.84 2019-06-03
56 868.3 Bill $3.93 2017-09-22
57 167 Joe $75.34 2018-04-11
58 176.8 Bob $6.73 2018-07-05
59 309.2 Matt $2.73 2019-04-23
60 689.7 Bill $40.64 2019-07-05
61 525.3 Joe $98.34 2017-06-17
62 515.1 Bob $57.04 2017-03-04
63 41 Matt $35.84 2017-02-13
64 772 Bill $98.04 2017-11-02
65 621.1 Joe $63.44 2017-09-14
66 518.7 Bob $50.34 2017-10-30
67 881.3 Matt $67.04 2017-01-16
68 417.8 Bill $84.64 2017-04-03
69 27.3 Joe $15.54 2017-05-04
70 889.2 Bob $84.54 2018-08-17
71 814.4 Matt $37.04 2018-07-28
72 93.3 Bill $88.54 2017-03-17
73 281.2 Joe $92.64 2018-05-06
74 453.1 Bob $69.84 2018-04-12
75 850.8 Matt $31.94 2017-02-13
76 206.5 Bill $83.84 2018-09-17
77 601.4 Joe $71.94 2017-08-31
78 748.8 Bob $13.74 2017-03-06
79 962.7 Matt $16.44 2017-09-01
80 203.7 Bill $5.33 2017-03-06
81 850.1 Joe $86.84 2018-05-09
82 479.2 Bob $96.14 2017-12-27
83 678.3 Matt $24.24 2017-10-03
84 235.7 Bill $69.54 2016-10-18
85 772.6 Joe $54.64 2017-10-23
86 943.8 Bob $75.24 2017-04-18
87 617.4 Matt $35.44 2019-07-30
88 960.6 Bill $10.24 2016-11-03
89 149.9 Joe $6.53 2017-05-12
90 494.5 Bob $26.94 2017-07-12
91 684.2 Matt $11.94 2017-02-09
92 244.1 Bill $59.84 2016-12-26
93 689.4 Joe $27.64 2017-10-02
94 61.1 Bob $51.24 2016-10-14
95 131 Matt $28.44 2018-07-08
96 520.2 Bill $22.84 2017-09-24
97 747.4 Joe $84.54 2018-11-07
98 693.8 Bob $80.64 2019-03-05
99 777 Matt $95.64 2019-05-20
100 24.3 Bill $45.04 2017-01-23
101 324.9 Joe $13.44 2017-06-09
102 493.1 Bob $37.84 2019-05-02
103 622.2 Matt $6.83 2017-01-14
104 993.3 Bill $12.94 2018-08-30
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 59.4 Bill $26.04 2019-07-25
1 671.2 Joe $78.04 2017-02-11
2 35.3 Bob $52.74 2016-08-16
3 753 Matt $22.14 2019-03-07
4 572.9 Mark $99.84 2019-01-14
5 457.8 Tom $2.23 2017-04-18
6 611.2 Jake $34.74 2017-09-20
7 883.3 Greg $84.04 2018-12-02
8 753.2 Adam $46.24 2019-02-19
9 899.2 Steve $45.64 2019-07-18
tfoot tfoot tfoot tfoot tfoot