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 149.3 Bill $54.34 2019-12-20
1 945.9 Joe $99.64 2018-05-21
2 183.5 Bob $4.03 2018-08-11
3 439.1 Matt $79.54 2020-05-11
4 911.1 Bill $73.24 2020-09-03
5 905.5 Joe $84.34 2020-04-18
6 602.8 Bob $7.43 2018-11-02
7 844 Matt $1.23 2018-09-16
8 52.1 Bill $10.04 2020-06-02
9 571.4 Joe $41.74 2018-09-21
10 805 Bob $56.74 2020-06-11
11 330.5 Matt $51.24 2020-06-06
12 356.8 Bill $69.64 2020-07-22
13 453.7 Joe $13.54 2019-11-28
14 102.4 Bob $4.63 2019-01-22
15 850.6 Matt $95.24 2018-07-24
16 479.6 Bill $55.44 2018-10-18
17 648 Joe $39.84 2018-11-01
18 775.8 Bob $45.04 2019-02-24
19 443.7 Matt $2.23 2020-06-21
20 576 Bill $82.74 2019-02-06
21 251.2 Joe $15.74 2020-09-21
22 922.2 Bob $51.44 2019-10-05
23 633.6 Matt $96.74 2020-03-09
24 139.7 Bill $7.03 2020-05-01
25 377.8 Joe $92.04 2020-03-06
26 459 Bob $40.04 2018-10-07
27 614.4 Matt $4.83 2020-01-11
28 782 Bill $82.34 2021-06-15
29 49.3 Joe $26.74 2018-05-10
30 733.9 Bob $84.34 2020-12-22
31 985 Matt $9.43 2021-06-21
32 748.6 Bill $1.63 2019-12-07
33 208.1 Joe $65.04 2019-10-30
34 802.5 Bob $79.04 2020-01-18
35 442.9 Matt $16.74 2019-10-18
36 34.8 Bill $62.64 2021-01-23
37 181 Joe $24.14 2021-03-19
38 725.3 Bob $2.23 2020-08-26
39 720 Matt $7.23 2018-05-01
40 736.3 Bill $80.54 2021-01-01
41 579.1 Joe $79.04 2021-04-20
42 578.9 Bob $53.94 2021-05-09
43 92.5 Matt $74.74 2020-03-29
44 573.4 Bill $55.04 2019-07-29
45 124.1 Joe $99.24 2020-02-08
46 594.9 Bob $2.73 2018-12-02
47 465.4 Matt $20.84 2019-09-07
48 383.6 Bill $93.34 2019-10-03
49 125.2 Joe $65.34 2019-12-24
50 133.9 Bob $39.04 2019-05-13
51 985.5 Matt $96.94 2018-09-13
52 931.3 Bill $54.84 2020-05-29
53 893.3 Joe $64.04 2019-08-10
54 505.1 Bob $21.34 2021-05-07
55 906.4 Matt $33.74 2021-04-28
56 474.8 Bill $93.24 2021-05-30
57 669.3 Joe $39.84 2018-11-25
58 104.3 Bob $78.14 2018-09-09
59 561.7 Matt $90.64 2020-10-04
60 90.7 Bill $4.03 2018-10-29
61 425.3 Joe $2.63 2018-09-22
62 550.3 Bob $95.74 2020-06-17
63 214.4 Matt $85.04 2019-04-27
64 625.5 Bill $35.54 2019-12-30
65 586.1 Joe $26.24 2021-01-24
66 539.1 Bob $73.64 2020-11-06
67 519.3 Matt $40.54 2018-12-10
68 707.6 Bill $51.04 2021-06-01
69 829.3 Joe $7.13 2021-02-13
70 604.4 Bob $16.24 2021-03-31
71 769 Matt $58.74 2021-04-30
72 902.3 Bill $13.84 2021-03-11
73 583 Joe $35.24 2020-09-19
74 903.8 Bob $97.74 2018-09-03
75 437.8 Matt $56.44 2019-07-03
76 309.3 Bill $10.34 2018-09-01
77 112.9 Joe $62.24 2019-12-14
78 314.1 Bob $32.94 2018-05-26
79 296.5 Matt $15.94 2018-08-16
80 185.3 Bill $76.34 2019-02-20
81 114.3 Joe $53.24 2020-12-31
82 68.8 Bob $43.44 2021-06-08
83 980.3 Matt $1.73 2019-05-20
84 742 Bill $92.14 2019-04-24
85 858.9 Joe $35.94 2021-02-04
86 237.4 Bob $66.84 2021-06-02
87 352.1 Matt $78.14 2020-03-22
88 872.3 Bill $9.53 2021-04-07
89 902.3 Joe $39.14 2018-08-07
90 3.6 Bob $57.64 2021-01-06
91 267 Matt $69.14 2019-07-14
92 117.7 Bill $76.04 2020-11-28
93 105.9 Joe $74.04 2020-12-18
94 446.1 Bob $48.24 2020-09-17
95 763.6 Matt $34.14 2018-09-06
96 644.5 Bill $57.84 2020-10-18
97 628 Joe $93.04 2020-02-07
98 233.3 Bob $80.24 2020-05-26
99 167.9 Matt $70.54 2018-06-22
100 261.1 Bill $70.84 2020-04-19
101 117.3 Joe $97.54 2019-04-27
102 505.3 Bob $9.33 2018-07-23
103 327.6 Matt $19.94 2020-11-25
104 166.9 Bill $64.54 2019-04-05
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 927.2 Bill $40.84 2020-05-03
1 46 Joe $5.23 2019-01-01
2 832.7 Bob $68.04 2018-10-12
3 400.1 Matt $91.44 2021-04-27
4 62.2 Mark $8.23 2020-05-20
5 115.5 Tom $34.34 2019-06-17
6 745.3 Jake $46.04 2019-05-19
7 65.8 Greg $96.54 2019-09-03
8 145.8 Adam $29.34 2020-04-20
9 965.6 Steve $46.04 2019-03-05
tfoot tfoot tfoot tfoot tfoot