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 926.9 Bill $98.04 2020-05-08
1 43.6 Joe $37.34 2019-07-29
2 458 Bob $35.84 2020-04-24
3 293.3 Matt $44.14 2019-02-22
4 723.8 Bill $96.24 2019-12-01
5 30 Joe $50.34 2018-11-17
6 97.9 Bob $39.74 2018-06-25
7 154.4 Matt $86.14 2020-10-06
8 729.1 Bill $19.64 2019-12-12
9 688.4 Joe $70.34 2020-10-01
10 131.9 Bob $63.04 2020-09-08
11 941.1 Matt $67.34 2018-09-13
12 504.3 Bill $13.14 2019-11-01
13 301.5 Joe $42.44 2018-01-23
14 729.2 Bob $14.84 2017-12-10
15 400.6 Matt $17.84 2019-07-15
16 744.7 Bill $27.64 2020-10-17
17 963.8 Joe $43.04 2020-05-08
18 903.6 Bob $15.94 2017-10-20
19 584.6 Matt $84.84 2020-01-12
20 519.8 Bill $98.04 2018-11-09
21 434.8 Joe $92.14 2017-10-27
22 723 Bob $42.54 2018-03-27
23 368.8 Matt $72.64 2019-08-01
24 455.4 Bill $45.64 2020-01-19
25 503.8 Joe $85.64 2020-08-12
26 55.4 Bob $60.14 2018-04-27
27 3.9 Matt $56.54 2019-09-07
28 813.2 Bill $46.84 2020-03-10
29 818.1 Joe $5.33 2019-09-16
30 525.8 Bob $57.24 2019-08-23
31 863 Matt $0.73 2019-05-23
32 873.4 Bill $73.04 2020-09-26
33 14.9 Joe $9.93 2019-11-15
34 580.7 Bob $55.44 2018-02-22
35 294.6 Matt $5.83 2020-11-09
36 186.7 Bill $11.34 2019-08-05
37 354.8 Joe $11.74 2018-03-19
38 953.1 Bob $93.04 2019-09-12
39 710.9 Matt $74.94 2019-11-12
40 316.5 Bill $27.44 2018-07-05
41 901.8 Joe $13.74 2018-07-14
42 407.8 Bob $1.13 2020-11-05
43 338.8 Matt $2.53 2017-12-28
44 996.2 Bill $60.64 2019-09-30
45 109.2 Joe $90.14 2019-12-07
46 78.2 Bob $8.73 2020-04-16
47 648.1 Matt $44.24 2020-08-30
48 782.5 Bill $39.54 2020-06-10
49 385 Joe $10.64 2019-08-24
50 40.2 Bob $42.34 2020-07-07
51 267.9 Matt $32.44 2020-12-13
52 502.8 Bill $73.24 2017-10-25
53 467.8 Joe $7.13 2017-11-23
54 531.7 Bob $6.73 2019-10-26
55 150 Matt $17.64 2019-07-03
56 826.3 Bill $25.44 2019-10-12
57 616.1 Joe $90.24 2018-01-04
58 523.3 Bob $68.54 2019-04-06
59 361 Matt $7.03 2019-08-07
60 947.2 Bill $11.04 2020-12-08
61 807.7 Joe $37.84 2018-10-18
62 805.5 Bob $88.14 2017-12-12
63 813.9 Matt $34.84 2018-03-04
64 847.9 Bill $88.04 2018-05-21
65 488 Joe $3.03 2018-12-11
66 28.8 Bob $85.64 2019-10-01
67 657 Matt $47.24 2019-06-10
68 727.2 Bill $99.54 2018-06-11
69 192.6 Joe $35.64 2018-08-30
70 764 Bob $30.44 2019-01-05
71 758 Matt $11.14 2020-03-17
72 76.3 Bill $91.74 2019-10-31
73 126.7 Joe $73.04 2020-12-07
74 248 Bob $57.84 2020-07-21
75 436.3 Matt $6.63 2020-08-24
76 800.9 Bill $9.53 2020-03-11
77 420 Joe $75.24 2018-07-09
78 941.4 Bob $47.94 2018-07-03
79 147.8 Matt $67.24 2019-08-20
80 423.9 Bill $43.54 2020-08-05
81 810.1 Joe $19.44 2020-12-12
82 574.1 Bob $27.04 2020-09-06
83 218.6 Matt $39.64 2019-10-30
84 211.4 Bill $64.44 2018-06-29
85 84.1 Joe $8.13 2018-09-13
86 986.6 Bob $88.14 2019-01-01
87 745.2 Matt $30.14 2018-03-20
88 975.9 Bill $24.34 2019-09-25
89 202 Joe $39.04 2018-09-10
90 784.4 Bob $81.44 2020-01-27
91 670.3 Matt $62.44 2020-09-07
92 667.2 Bill $19.84 2018-05-15
93 580.5 Joe $41.74 2019-08-17
94 224.2 Bob $62.84 2018-07-01
95 446.1 Matt $71.24 2018-10-02
96 734.1 Bill $69.94 2018-05-18
97 117 Joe $44.44 2019-05-02
98 251.7 Bob $42.04 2020-02-06
99 865.3 Matt $62.24 2018-03-03
100 150.5 Bill $40.64 2020-09-30
101 871.1 Joe $7.63 2019-07-23
102 785.2 Bob $74.44 2020-03-09
103 968.9 Matt $32.44 2018-05-04
104 548.9 Bill $54.84 2020-04-30
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 773 Bill $99.44 2019-06-02
1 77.6 Joe $72.84 2018-06-18
2 263.5 Bob $84.54 2019-11-14
3 750.6 Matt $9.73 2018-01-12
4 480.4 Mark $96.24 2020-01-01
5 600.6 Tom $11.24 2018-02-13
6 535 Jake $98.44 2018-05-12
7 93.6 Greg $76.94 2020-09-19
8 850.6 Adam $73.84 2018-07-29
9 24.5 Steve $28.64 2020-04-24
tfoot tfoot tfoot tfoot tfoot