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 213.9 Bill $7.83 2019-11-13
1 775.9 Joe $62.44 2020-11-02
2 264.1 Bob $76.94 2018-07-17
3 865.4 Matt $25.34 2019-04-01
4 940.2 Bill $0.93 2018-03-14
5 640.2 Joe $25.94 2019-08-27
6 764.9 Bob $39.54 2019-11-24
7 248.3 Matt $98.24 2018-03-14
8 284.1 Bill $97.54 2020-02-08
9 348.5 Joe $42.54 2020-12-16
10 450.7 Bob $63.94 2021-03-16
11 992.4 Matt $41.54 2020-01-06
12 840.4 Bill $67.94 2019-04-13
13 963.7 Joe $54.44 2020-01-31
14 310.1 Bob $48.54 2020-02-10
15 325.1 Matt $12.54 2020-12-06
16 799.3 Bill $89.04 2019-01-05
17 350 Joe $13.84 2018-12-15
18 365 Bob $42.24 2018-11-16
19 981.5 Matt $77.04 2020-03-22
20 867.3 Bill $22.14 2019-01-29
21 831.4 Joe $21.34 2020-05-23
22 419 Bob $5.43 2019-05-18
23 775.8 Matt $1.73 2021-02-06
24 385.2 Bill $32.74 2019-06-20
25 3.5 Joe $65.24 2019-11-12
26 880.8 Bob $45.24 2019-07-07
27 152.8 Matt $80.24 2019-12-13
28 406.3 Bill $16.64 2021-04-14
29 634.7 Joe $14.84 2020-07-22
30 288.4 Bob $1.53 2021-04-04
31 581.1 Matt $84.74 2018-10-06
32 288.7 Bill $26.64 2018-12-07
33 675.3 Joe $4.13 2018-12-27
34 606.3 Bob $42.64 2020-01-10
35 21.7 Matt $43.04 2018-12-04
36 561.8 Bill $31.14 2020-05-10
37 991.4 Joe $46.34 2019-09-23
38 558.8 Bob $87.04 2020-04-03
39 547.9 Matt $50.44 2020-09-21
40 307.3 Bill $79.24 2020-10-08
41 287.6 Joe $37.44 2020-04-14
42 481.1 Bob $66.24 2021-02-15
43 728.2 Matt $33.74 2021-04-04
44 992.6 Bill $94.44 2019-06-10
45 584.3 Joe $96.54 2020-10-19
46 828.4 Bob $52.74 2018-08-13
47 524 Matt $51.84 2020-01-31
48 21.2 Bill $7.73 2019-09-02
49 684.8 Joe $62.54 2021-04-08
50 496.4 Bob $93.24 2020-08-10
51 323.1 Matt $22.04 2018-08-16
52 996.4 Bill $70.14 2020-09-21
53 935.2 Joe $42.94 2018-08-16
54 915.2 Bob $42.14 2018-06-11
55 321.6 Matt $0.63 2018-05-02
56 157.7 Bill $83.44 2020-01-02
57 304.4 Joe $35.84 2018-06-24
58 914.3 Bob $37.94 2018-09-21
59 393.7 Matt $6.43 2020-09-13
60 377.2 Bill $56.04 2020-06-27
61 153.1 Joe $88.34 2021-03-08
62 302.5 Bob $88.04 2020-03-27
63 114 Matt $81.54 2018-06-05
64 262.8 Bill $73.04 2019-10-05
65 355.2 Joe $5.23 2019-10-12
66 412.8 Bob $20.94 2019-04-03
67 997.5 Matt $51.44 2020-05-21
68 100.6 Bill $42.84 2018-06-03
69 280.8 Joe $82.24 2018-08-16
70 85.9 Bob $19.94 2020-05-25
71 823.3 Matt $35.24 2020-01-11
72 780.3 Bill $65.44 2019-08-25
73 438.1 Joe $76.84 2019-01-23
74 524.7 Bob $3.13 2018-03-16
75 32.7 Matt $38.64 2018-05-15
76 546.4 Bill $79.94 2019-01-12
77 894.1 Joe $79.64 2020-08-28
78 599.8 Bob $89.74 2018-11-05
79 684.6 Matt $17.84 2018-04-12
80 833.3 Bill $26.34 2018-11-28
81 542.4 Joe $8.73 2020-01-09
82 134.8 Bob $86.74 2018-12-05
83 606.9 Matt $30.54 2018-03-11
84 893.9 Bill $83.04 2018-04-16
85 910.8 Joe $86.24 2019-07-07
86 979.2 Bob $40.94 2018-11-16
87 256.8 Matt $30.24 2018-03-25
88 47.9 Bill $90.24 2021-01-25
89 266.8 Joe $58.74 2018-06-18
90 307.2 Bob $42.04 2019-04-19
91 546.2 Matt $96.24 2019-07-28
92 137 Bill $9.73 2019-02-24
93 381.8 Joe $70.44 2020-02-12
94 394.7 Bob $59.84 2019-07-29
95 438.4 Matt $50.94 2019-02-20
96 868 Bill $48.84 2020-06-06
97 96.1 Joe $74.44 2018-03-22
98 120.4 Bob $79.24 2021-01-29
99 41.4 Matt $5.93 2019-10-09
100 139.8 Bill $36.64 2021-02-06
101 501.5 Joe $91.24 2020-12-25
102 949.7 Bob $4.93 2021-04-16
103 264.8 Matt $43.14 2020-05-08
104 884.5 Bill $82.64 2019-01-29
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 333.7 Bill $26.44 2020-09-08
1 645 Joe $13.24 2019-01-24
2 364.7 Bob $22.84 2018-04-03
3 386.9 Matt $34.94 2020-10-06
4 311.3 Mark $39.04 2020-12-13
5 822.4 Tom $53.04 2018-12-11
6 753.6 Jake $3.13 2018-08-31
7 647.1 Greg $98.14 2018-10-27
8 637.7 Adam $24.54 2020-03-09
9 332.2 Steve $13.04 2019-08-20
tfoot tfoot tfoot tfoot tfoot