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 179.1 Bill $28.14 2019-09-29
1 175.4 Joe $16.84 2018-06-02
2 55.4 Bob $7.23 2019-09-01
3 196.3 Matt $79.84 2019-04-16
4 630.4 Bill $10.44 2017-05-24
5 254.2 Joe $10.74 2018-03-18
6 731.5 Bob $54.64 2019-10-07
7 954.9 Matt $29.54 2019-08-20
8 988.7 Bill $3.43 2019-01-23
9 267.7 Joe $99.34 2018-05-31
10 550.4 Bob $17.24 2019-04-22
11 343.7 Matt $34.84 2019-11-02
12 718.1 Bill $40.34 2020-01-24
13 487.2 Joe $59.94 2019-06-05
14 136.9 Bob $23.04 2019-10-03
15 188.6 Matt $48.44 2020-02-04
16 498 Bill $21.54 2018-08-27
17 297.4 Joe $17.04 2019-08-04
18 55.5 Bob $15.94 2019-09-12
19 633.3 Matt $42.64 2019-09-05
20 6.5 Bill $97.74 2020-03-22
21 660.9 Joe $32.04 2018-02-26
22 483.5 Bob $3.83 2019-06-07
23 377.9 Matt $52.54 2018-02-28
24 70.5 Bill $66.24 2018-11-21
25 866.8 Joe $85.14 2017-04-03
26 769.9 Bob $34.94 2017-12-08
27 219.3 Matt $64.64 2018-06-23
28 963.6 Bill $70.24 2018-12-23
29 742.2 Joe $33.54 2020-04-30
30 513.9 Bob $34.14 2020-04-03
31 457.9 Matt $0.23 2018-02-06
32 749.5 Bill $48.64 2018-03-23
33 444 Joe $86.34 2019-11-21
34 737.8 Bob $93.44 2018-10-26
35 261.2 Matt $80.14 2018-05-06
36 268.5 Bill $57.04 2019-06-14
37 491 Joe $79.04 2018-04-30
38 883.5 Bob $75.34 2017-05-20
39 434.8 Matt $49.54 2018-06-11
40 412.4 Bill $0.93 2019-07-11
41 366.8 Joe $46.74 2019-07-14
42 641.4 Bob $21.74 2017-11-26
43 954.4 Matt $66.14 2017-06-20
44 792.9 Bill $39.84 2017-04-05
45 293.7 Joe $66.04 2019-10-18
46 645.3 Bob $92.84 2018-06-08
47 345.7 Matt $41.94 2017-10-08
48 692.3 Bill $30.24 2020-02-27
49 740.4 Joe $73.74 2018-07-23
50 123.3 Bob $14.94 2018-08-02
51 847.4 Matt $51.64 2020-01-25
52 573.7 Bill $15.84 2017-08-01
53 785.6 Joe $11.24 2019-09-05
54 860.9 Bob $90.54 2017-10-08
55 870.1 Matt $19.84 2019-11-10
56 679.8 Bill $84.44 2019-08-19
57 60 Joe $18.94 2017-10-15
58 229.9 Bob $88.24 2018-09-30
59 152.9 Matt $62.24 2017-11-30
60 571.3 Bill $74.54 2018-05-22
61 999 Joe $59.34 2020-01-09
62 893.7 Bob $16.64 2017-05-09
63 4.9 Matt $95.24 2017-09-16
64 776.7 Bill $81.34 2017-05-29
65 946.7 Joe $68.34 2018-01-13
66 776.2 Bob $36.24 2017-07-16
67 533.6 Matt $42.24 2018-02-20
68 709.8 Bill $65.24 2017-10-06
69 188.3 Joe $80.54 2019-09-26
70 403.9 Bob $37.64 2018-12-05
71 769 Matt $37.54 2017-08-21
72 650.2 Bill $26.94 2018-03-01
73 689 Joe $27.44 2018-01-04
74 839.8 Bob $5.03 2017-06-01
75 895.3 Matt $99.74 2019-07-31
76 149.3 Bill $77.34 2017-07-23
77 246.9 Joe $30.74 2018-11-24
78 533.8 Bob $1.73 2017-10-18
79 702.4 Matt $20.54 2020-05-07
80 492.8 Bill $60.94 2018-05-16
81 28.5 Joe $37.84 2019-07-24
82 156.6 Bob $2.83 2017-03-30
83 451.1 Matt $71.74 2018-02-10
84 697.2 Bill $55.74 2018-04-09
85 756 Joe $45.24 2018-04-06
86 497.4 Bob $60.14 2017-07-18
87 601.3 Matt $84.84 2018-07-08
88 127.6 Bill $38.24 2018-07-28
89 306 Joe $8.43 2019-03-22
90 289.6 Bob $57.74 2017-12-24
91 649.6 Matt $60.54 2019-03-06
92 384.9 Bill $76.24 2019-04-08
93 389.1 Joe $21.34 2018-05-15
94 667.2 Bob $91.04 2020-02-19
95 995.7 Matt $66.64 2018-05-26
96 321.3 Bill $16.44 2020-04-20
97 420.4 Joe $76.54 2019-10-28
98 826.3 Bob $89.24 2017-11-11
99 249 Matt $19.84 2018-02-17
100 876.8 Bill $48.84 2019-12-16
101 113.4 Joe $13.74 2018-09-16
102 727.9 Bob $52.24 2017-12-14
103 370.3 Matt $91.14 2018-08-18
104 729.8 Bill $57.84 2018-05-06
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 646 Bill $57.44 2017-04-14
1 14.3 Joe $89.54 2017-10-20
2 983.8 Bob $31.64 2020-03-24
3 801.5 Matt $14.24 2019-11-20
4 1 Mark $39.14 2017-05-06
5 284.7 Tom $26.84 2018-11-21
6 145.4 Jake $38.14 2019-04-29
7 611.5 Greg $10.94 2017-10-23
8 839.5 Adam $47.94 2017-07-13
9 280.5 Steve $20.94 2019-05-13
tfoot tfoot tfoot tfoot tfoot