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 871.2 Bill $84.04 2017-09-15
1 828.7 Joe $47.14 2017-09-02
2 960 Bob $27.94 2014-11-02
3 188.8 Matt $30.74 2017-04-27
4 382.4 Bill $88.84 2016-11-23
5 639.4 Joe $54.44 2014-09-03
6 985.7 Bob $82.94 2016-02-25
7 332.2 Matt $93.04 2015-04-05
8 220.6 Bill $37.54 2015-09-29
9 730.9 Joe $46.14 2015-05-07
10 424 Bob $33.24 2014-11-03
11 389.9 Matt $16.14 2016-05-01
12 344.6 Bill $12.14 2017-03-21
13 404.8 Joe $31.04 2015-01-08
14 249.2 Bob $69.24 2014-08-31
15 959.8 Matt $33.14 2016-05-22
16 968.4 Bill $31.74 2015-11-05
17 443.5 Joe $64.94 2015-08-16
18 637.3 Bob $87.04 2016-10-23
19 983.4 Matt $60.04 2015-02-07
20 204.4 Bill $2.43 2016-02-27
21 265.3 Joe $41.44 2016-08-31
22 797.7 Bob $75.94 2017-01-18
23 609.4 Matt $16.34 2014-11-10
24 727.8 Bill $41.34 2017-01-19
25 733.6 Joe $37.24 2014-12-07
26 283.6 Bob $34.14 2015-12-09
27 662.3 Matt $78.44 2014-10-28
28 971 Bill $42.14 2017-07-31
29 654.4 Joe $40.54 2016-04-24
30 798.9 Bob $60.94 2016-05-22
31 275.5 Matt $87.44 2017-09-13
32 912.9 Bill $67.24 2016-12-08
33 671.1 Joe $28.14 2017-06-15
34 738.9 Bob $0.93 2015-08-05
35 498.4 Matt $74.34 2016-10-09
36 589.1 Bill $2.63 2014-09-07
37 996.6 Joe $68.84 2017-03-02
38 53 Bob $65.94 2015-05-03
39 978.9 Matt $31.44 2016-08-13
40 505 Bill $11.34 2015-05-19
41 55.4 Joe $38.84 2014-12-24
42 19.9 Bob $30.14 2017-02-09
43 743.1 Matt $97.24 2014-10-31
44 629.6 Bill $71.14 2014-11-10
45 928.6 Joe $20.94 2017-03-19
46 600 Bob $79.84 2017-04-18
47 612 Matt $79.54 2016-04-23
48 408.1 Bill $84.84 2015-03-25
49 625.5 Joe $82.74 2016-03-22
50 247.7 Bob $33.24 2016-07-31
51 478.9 Matt $38.74 2017-10-23
52 584.4 Bill $40.74 2015-08-06
53 361.8 Joe $15.04 2015-07-04
54 420.5 Bob $77.94 2017-10-04
55 488.2 Matt $70.84 2015-04-02
56 298.5 Bill $30.84 2017-10-12
57 135 Joe $92.04 2017-02-17
58 659.9 Bob $32.84 2016-08-25
59 844.1 Matt $95.34 2016-02-06
60 342 Bill $20.14 2017-02-24
61 952.4 Joe $68.04 2015-03-17
62 950.8 Bob $26.44 2016-06-30
63 250.2 Matt $62.64 2016-12-20
64 521.5 Bill $4.63 2016-04-09
65 503.6 Joe $53.44 2015-05-06
66 694.8 Bob $83.34 2016-04-27
67 684.3 Matt $96.84 2016-01-25
68 468.5 Bill $62.84 2017-02-07
69 100.6 Joe $47.24 2016-12-15
70 559.1 Bob $81.44 2017-08-04
71 349.2 Matt $76.64 2016-07-30
72 526.2 Bill $71.74 2017-05-31
73 110 Joe $96.74 2016-03-24
74 843.5 Bob $48.84 2016-05-16
75 356.3 Matt $99.24 2014-11-24
76 576.9 Bill $68.74 2017-07-15
77 105.4 Joe $37.14 2017-06-08
78 553.5 Bob $83.94 2016-04-03
79 329.4 Matt $94.04 2017-09-30
80 58.4 Bill $49.94 2017-02-27
81 988.3 Joe $84.84 2016-06-01
82 597.8 Bob $37.44 2015-07-09
83 471.4 Matt $48.44 2015-05-31
84 970.6 Bill $32.84 2016-12-16
85 515.9 Joe $68.44 2016-12-07
86 595.4 Bob $26.14 2015-12-10
87 507.7 Matt $36.64 2017-02-11
88 387.7 Bill $91.94 2016-08-09
89 895.2 Joe $24.94 2016-05-31
90 874.4 Bob $30.74 2014-10-29
91 667.1 Matt $29.54 2017-07-07
92 225.8 Bill $89.34 2015-07-14
93 501.1 Joe $36.44 2017-01-24
94 743.4 Bob $33.54 2014-12-08
95 473.8 Matt $85.14 2017-02-06
96 196 Bill $44.64 2014-10-04
97 604.7 Joe $95.44 2015-12-02
98 384.1 Bob $34.14 2015-08-30
99 2.9 Matt $23.74 2016-06-13
100 561.4 Bill $11.14 2017-06-04
101 618.7 Joe $77.84 2015-03-11
102 524 Bob $0.43 2014-11-07
103 803.6 Matt $50.54 2016-01-03
104 567.2 Bill $24.84 2017-01-24
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 658.3 Bill $72.24 2016-08-05
1 433.2 Joe $91.84 2014-11-03
2 468.7 Bob $52.24 2014-09-10
3 870.1 Matt $90.74 2015-10-10
4 190.9 Mark $90.94 2016-07-10
5 760.4 Tom $47.14 2016-11-15
6 636.9 Jake $8.93 2016-03-04
7 808.7 Greg $61.34 2016-03-08
8 873.6 Adam $41.74 2017-10-13
9 302.9 Steve $98.44 2015-05-27
tfoot tfoot tfoot tfoot tfoot