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 766.8 Bill $3.23 2016-12-25
1 398.6 Joe $99.44 2017-02-09
2 136.4 Bob $30.94 2017-03-10
3 350.1 Matt $91.54 2014-06-08
4 37.7 Bill $28.94 2016-06-13
5 934.3 Joe $26.64 2016-09-23
6 128.7 Bob $57.04 2015-02-04
7 438.6 Matt $68.74 2016-02-29
8 617.8 Bill $83.24 2016-06-25
9 707 Joe $30.24 2016-02-13
10 891.2 Bob $6.83 2016-03-21
11 706.1 Matt $46.74 2016-03-14
12 560.9 Bill $60.34 2017-03-06
13 440.3 Joe $95.34 2016-11-28
14 451 Bob $99.14 2014-08-27
15 97.4 Matt $92.54 2015-07-02
16 832.1 Bill $5.43 2017-04-22
17 50.7 Joe $49.24 2016-04-24
18 606.3 Bob $11.04 2015-10-13
19 262.9 Matt $81.74 2016-09-26
20 804.3 Bill $70.84 2016-12-14
21 377.9 Joe $41.44 2015-04-08
22 945.3 Bob $97.54 2017-03-06
23 821.1 Matt $41.64 2017-01-11
24 612.3 Bill $86.74 2017-01-01
25 692.2 Joe $96.44 2016-10-06
26 38.5 Bob $79.64 2016-12-08
27 955.1 Matt $84.74 2015-04-30
28 558.2 Bill $45.34 2015-09-05
29 993.7 Joe $71.64 2015-02-05
30 731 Bob $52.04 2017-05-05
31 536.7 Matt $89.84 2015-06-27
32 809.6 Bill $84.34 2015-05-29
33 685.8 Joe $66.44 2016-09-21
34 515.4 Bob $27.64 2016-04-20
35 336 Matt $96.84 2016-03-09
36 81.9 Bill $0.73 2015-07-17
37 881.7 Joe $96.24 2015-01-20
38 174 Bob $52.04 2016-06-27
39 576.4 Matt $51.44 2015-08-03
40 795.9 Bill $24.54 2017-03-27
41 723.8 Joe $78.14 2016-11-28
42 66.1 Bob $59.14 2016-05-30
43 383.5 Matt $27.74 2015-05-08
44 116.6 Bill $79.24 2016-03-22
45 716 Joe $12.84 2016-02-15
46 279.2 Bob $21.04 2016-02-23
47 638.4 Matt $9.13 2016-01-10
48 844 Bill $26.54 2014-07-03
49 502.5 Joe $84.24 2016-02-18
50 876.6 Bob $63.84 2016-11-27
51 770.6 Matt $36.14 2016-03-19
52 562.3 Bill $42.74 2014-12-02
53 197 Joe $81.14 2015-10-18
54 495.7 Bob $92.74 2015-02-19
55 70.8 Matt $64.34 2015-07-17
56 614.3 Bill $92.24 2016-03-16
57 164.7 Joe $56.14 2016-06-29
58 677 Bob $40.54 2017-05-02
59 709.4 Matt $90.74 2016-10-31
60 255.5 Bill $78.44 2015-09-08
61 46.4 Joe $55.44 2016-10-30
62 618.6 Bob $11.74 2015-01-06
63 781.7 Matt $31.34 2014-06-01
64 221.4 Bill $80.94 2017-05-09
65 453 Joe $88.04 2016-03-22
66 812.4 Bob $49.44 2015-12-23
67 381.6 Matt $65.94 2014-08-02
68 42.1 Bill $33.64 2015-11-13
69 967.9 Joe $4.53 2015-07-28
70 735.3 Bob $30.14 2014-11-20
71 140.2 Matt $34.74 2016-08-22
72 906.3 Bill $96.54 2017-01-04
73 99.7 Joe $74.74 2014-11-02
74 103.8 Bob $96.84 2017-05-26
75 35.2 Matt $42.14 2017-01-07
76 609.7 Bill $23.44 2015-06-01
77 106.6 Joe $61.54 2017-07-03
78 164.3 Bob $65.74 2015-05-26
79 626.5 Matt $62.54 2015-07-17
80 995.9 Bill $36.04 2016-06-28
81 149 Joe $50.04 2014-06-03
82 856.2 Bob $40.74 2017-06-24
83 679.9 Matt $50.64 2016-09-04
84 816.9 Bill $61.04 2016-07-30
85 763 Joe $64.54 2014-09-29
86 588.9 Bob $25.54 2015-06-26
87 908.9 Matt $36.14 2017-06-07
88 887.5 Bill $52.64 2016-05-06
89 201.7 Joe $15.24 2015-02-27
90 560.8 Bob $14.84 2016-04-19
91 220.4 Matt $29.74 2014-09-18
92 226.7 Bill $15.34 2016-01-02
93 198.2 Joe $83.34 2014-06-09
94 916.6 Bob $65.04 2016-05-15
95 603.2 Matt $41.34 2015-04-01
96 710.9 Bill $0.23 2016-01-20
97 52.1 Joe $91.14 2017-03-14
98 8.3 Bob $79.84 2015-09-12
99 621.7 Matt $100.05 2016-03-06
100 859.9 Bill $56.04 2016-08-24
101 458.3 Joe $78.14 2014-06-02
102 557.1 Bob $0.73 2014-11-26
103 62.5 Matt $20.64 2017-07-18
104 74 Bill $12.24 2016-06-07
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 695.6 Bill $72.54 2014-07-29
1 962.4 Joe $43.64 2014-07-31
2 483.9 Bob $48.84 2017-06-19
3 366.8 Matt $49.64 2016-10-28
4 775.3 Mark $11.84 2016-10-27
5 335.9 Tom $97.84 2015-06-06
6 44.5 Jake $43.64 2014-09-26
7 50.1 Greg $99.34 2014-10-04
8 208.7 Adam $5.63 2015-05-30
9 200.3 Steve $13.04 2015-10-18
tfoot tfoot tfoot tfoot tfoot