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 562.5 Bill $80.14 2014-09-19
1 497.8 Joe $50.74 2015-01-23
2 465.2 Bob $50.04 2017-03-18
3 532.1 Matt $48.04 2016-03-17
4 257.5 Bill $46.64 2016-04-14
5 507.1 Joe $17.44 2014-12-21
6 988 Bob $2.03 2015-09-30
7 539.1 Matt $82.74 2015-10-22
8 503.1 Bill $15.24 2015-02-21
9 198.8 Joe $17.64 2016-04-12
10 145.2 Bob $73.94 2015-08-25
11 164 Matt $23.64 2017-04-03
12 291.7 Bill $70.24 2015-09-02
13 97.9 Joe $23.44 2017-03-12
14 587.5 Bob $49.14 2015-07-02
15 100.9 Matt $99.84 2016-01-19
16 199.9 Bill $98.64 2016-02-11
17 543.6 Joe $52.54 2015-07-26
18 906.3 Bob $2.83 2016-01-18
19 59.2 Matt $22.74 2016-08-09
20 570.9 Bill $37.24 2015-10-12
21 883.7 Joe $53.64 2016-07-11
22 703.6 Bob $82.84 2015-08-01
23 23.4 Matt $92.54 2016-04-27
24 823.7 Bill $51.34 2014-09-16
25 89.8 Joe $61.44 2014-09-14
26 529.6 Bob $81.44 2014-08-29
27 989.3 Matt $35.74 2016-04-28
28 275.8 Bill $26.34 2016-05-30
29 714.7 Joe $32.34 2017-02-17
30 329.8 Bob $89.34 2015-02-21
31 683.6 Matt $77.74 2016-11-03
32 273.8 Bill $48.14 2016-04-17
33 565.5 Joe $50.44 2016-01-22
34 90.8 Bob $32.84 2017-09-07
35 107.1 Matt $41.84 2016-06-17
36 121.4 Bill $94.74 2015-11-14
37 121.8 Joe $93.64 2016-12-31
38 647.4 Bob $21.24 2014-09-01
39 201.2 Matt $92.74 2015-09-09
40 981.9 Bill $25.64 2015-05-09
41 134.7 Joe $94.04 2017-10-24
42 823.5 Bob $21.44 2016-03-02
43 339.9 Matt $77.94 2017-10-06
44 781.8 Bill $87.04 2015-08-20
45 736.7 Joe $97.74 2016-12-15
46 305.4 Bob $9.93 2016-10-15
47 687.7 Matt $22.04 2016-08-02
48 427.2 Bill $86.84 2017-04-04
49 430.1 Joe $6.93 2017-01-10
50 755.5 Bob $5.13 2014-09-02
51 974.4 Matt $18.54 2017-08-25
52 970.3 Bill $0.93 2015-02-27
53 446.9 Joe $34.94 2017-08-17
54 427.4 Bob $13.04 2017-03-20
55 735.6 Matt $86.74 2017-02-22
56 461.3 Bill $17.24 2017-06-16
57 133.9 Joe $86.04 2014-12-26
58 742.7 Bob $28.74 2017-09-25
59 563.6 Matt $71.74 2014-10-14
60 311.2 Bill $47.34 2014-12-11
61 315.2 Joe $44.74 2015-07-14
62 259.4 Bob $41.74 2015-07-24
63 417.5 Matt $86.44 2016-08-30
64 354.9 Bill $29.14 2017-01-28
65 162.5 Joe $2.73 2016-08-27
66 947.2 Bob $48.84 2017-03-14
67 830.4 Matt $62.24 2016-10-03
68 933.9 Bill $36.54 2017-09-01
69 905 Joe $92.84 2016-10-08
70 944.9 Bob $23.94 2015-02-06
71 35.5 Matt $55.54 2016-07-07
72 311.3 Bill $81.44 2014-09-02
73 595.8 Joe $23.14 2017-05-29
74 228.9 Bob $58.64 2015-03-01
75 992.3 Matt $74.94 2015-04-01
76 622.6 Bill $69.64 2016-10-18
77 425.3 Joe $52.64 2015-08-07
78 88 Bob $46.04 2016-10-02
79 37.8 Matt $36.54 2016-07-11
80 704.9 Bill $31.04 2017-04-14
81 844.6 Joe $34.54 2015-11-16
82 431.3 Bob $65.74 2015-04-15
83 435.4 Matt $25.24 2016-01-07
84 303.5 Bill $48.14 2014-09-16
85 463.1 Joe $47.34 2017-01-29
86 649.8 Bob $9.63 2016-02-12
87 324.7 Matt $52.14 2017-10-13
88 621.8 Bill $60.94 2016-01-27
89 283.6 Joe $64.74 2017-03-24
90 873.7 Bob $35.24 2015-01-15
91 703.2 Matt $19.64 2016-02-19
92 87.3 Bill $62.84 2015-01-17
93 285.4 Joe $6.33 2015-11-05
94 714.8 Bob $36.64 2017-05-15
95 730.6 Matt $82.94 2015-09-13
96 495 Bill $47.94 2016-01-02
97 955.2 Joe $80.44 2017-08-28
98 941.5 Bob $42.64 2016-06-01
99 387.7 Matt $70.94 2015-04-20
100 198.9 Bill $58.34 2016-05-31
101 319.8 Joe $28.64 2017-01-13
102 786 Bob $37.34 2015-11-09
103 908.7 Matt $65.94 2016-01-21
104 283.7 Bill $37.34 2017-03-20
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 139.7 Bill $10.44 2016-09-03
1 469 Joe $59.94 2015-01-09
2 894.1 Bob $55.44 2017-07-28
3 840.5 Matt $49.54 2015-10-02
4 395.9 Mark $88.34 2014-10-30
5 598.3 Tom $8.23 2016-09-04
6 152.5 Jake $40.24 2017-08-01
7 902.9 Greg $18.84 2015-08-06
8 280.9 Adam $9.63 2017-09-06
9 721.7 Steve $38.04 2015-09-12
tfoot tfoot tfoot tfoot tfoot