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 418.3 Bill $76.54 2019-03-31
1 758.3 Joe $25.64 2019-02-16
2 951.1 Bob $76.94 2019-12-20
3 332.8 Matt $57.94 2020-04-18
4 843.3 Bill $16.24 2017-08-11
5 636.7 Joe $84.14 2018-06-11
6 42.9 Bob $58.34 2018-09-28
7 602.1 Matt $58.24 2018-02-22
8 354.2 Bill $93.54 2018-11-03
9 10.8 Joe $74.14 2020-03-03
10 528.5 Bob $15.94 2019-06-06
11 164.4 Matt $91.74 2020-03-28
12 763.2 Bill $86.84 2019-07-04
13 626.8 Joe $20.14 2018-03-04
14 594.7 Bob $4.43 2018-09-08
15 714.6 Matt $68.14 2018-03-08
16 97 Bill $72.44 2020-01-12
17 574 Joe $32.64 2018-09-14
18 862.7 Bob $68.04 2018-07-01
19 370.1 Matt $69.14 2017-09-04
20 298.1 Bill $21.94 2018-03-07
21 991.7 Joe $38.34 2017-12-01
22 940.6 Bob $14.74 2017-07-01
23 658.2 Matt $77.34 2018-02-19
24 955 Bill $36.84 2018-04-11
25 414.1 Joe $8.23 2017-04-06
26 714.5 Bob $17.94 2019-07-23
27 597.7 Matt $75.34 2017-06-02
28 62.4 Bill $61.64 2019-07-29
29 462.1 Joe $98.64 2018-08-05
30 602.4 Bob $28.44 2019-04-16
31 901.8 Matt $27.64 2017-05-02
32 118.3 Bill $21.64 2017-10-18
33 203 Joe $87.44 2020-03-31
34 488.6 Bob $82.94 2018-03-31
35 818.4 Matt $24.34 2018-07-04
36 828.9 Bill $95.84 2019-01-27
37 563 Joe $55.54 2018-04-17
38 622.8 Bob $61.84 2020-03-29
39 362.3 Matt $8.03 2020-03-13
40 792.4 Bill $68.24 2017-12-05
41 441.5 Joe $58.44 2018-10-20
42 473.9 Bob $70.24 2019-06-27
43 652.7 Matt $90.54 2019-02-02
44 604.8 Bill $39.44 2018-07-19
45 924.7 Joe $21.24 2019-04-27
46 327 Bob $4.13 2019-03-09
47 908.5 Matt $60.44 2017-10-10
48 243.2 Bill $22.64 2019-09-25
49 193.8 Joe $58.94 2019-12-26
50 130.2 Bob $38.14 2018-12-23
51 350.6 Matt $82.24 2017-08-29
52 846.4 Bill $29.64 2019-11-19
53 558.5 Joe $94.94 2019-08-01
54 144.7 Bob $55.44 2017-08-29
55 560.2 Matt $47.84 2018-05-01
56 219 Bill $80.54 2018-06-18
57 835.5 Joe $71.44 2020-05-16
58 7.2 Bob $95.74 2017-12-03
59 796.7 Matt $15.14 2019-10-15
60 665.9 Bill $28.14 2017-10-28
61 217.2 Joe $63.14 2017-04-06
62 352.4 Bob $47.84 2018-03-14
63 189.6 Matt $3.63 2018-01-14
64 931.8 Bill $18.14 2019-10-17
65 67.4 Joe $74.14 2018-02-20
66 415 Bob $96.04 2017-07-10
67 803.1 Matt $79.54 2019-10-14
68 794.9 Bill $80.24 2019-08-24
69 12.9 Joe $59.94 2020-02-15
70 819.5 Bob $26.54 2017-11-04
71 7 Matt $48.24 2019-11-05
72 16.9 Bill $83.54 2018-03-10
73 323 Joe $2.43 2018-04-21
74 577.9 Bob $95.64 2018-11-16
75 386.3 Matt $2.33 2018-01-20
76 673.1 Bill $43.84 2017-12-04
77 764.9 Joe $24.14 2017-04-11
78 570.4 Bob $3.63 2019-10-27
79 332.6 Matt $4.93 2018-07-19
80 245.3 Bill $86.84 2019-05-22
81 438.6 Joe $87.54 2017-09-30
82 263.2 Bob $89.24 2020-05-22
83 565.3 Matt $21.54 2017-04-19
84 903.4 Bill $79.34 2020-04-29
85 422.1 Joe $17.94 2020-05-25
86 681.6 Bob $85.24 2018-08-14
87 900.9 Matt $61.74 2019-05-20
88 915.3 Bill $18.74 2019-06-30
89 732 Joe $52.04 2019-08-26
90 147.8 Bob $76.54 2019-03-27
91 828.4 Matt $20.44 2018-11-02
92 991.1 Bill $46.74 2018-06-30
93 988.3 Joe $3.23 2019-03-06
94 9.3 Bob $93.54 2018-07-09
95 986 Matt $35.84 2019-02-02
96 985.8 Bill $3.93 2018-08-15
97 423.5 Joe $94.04 2017-05-28
98 102.3 Bob $85.54 2017-12-31
99 817 Matt $58.74 2019-08-25
100 580.5 Bill $73.54 2018-11-26
101 212.3 Joe $56.34 2019-07-20
102 719.4 Bob $55.44 2017-11-10
103 118.6 Matt $54.24 2017-12-17
104 732.9 Bill $55.24 2017-10-03
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 140 Bill $53.84 2018-11-21
1 726.3 Joe $52.44 2019-01-05
2 164.7 Bob $94.74 2018-10-27
3 220.2 Matt $4.93 2018-05-12
4 463 Mark $86.64 2020-03-22
5 225.7 Tom $44.74 2019-05-20
6 753.4 Jake $65.94 2017-12-30
7 484.8 Greg $37.84 2019-10-02
8 682.9 Adam $49.74 2018-04-21
9 913.1 Steve $23.04 2020-01-19
tfoot tfoot tfoot tfoot tfoot