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 715.2 Bill $8.03 2018-05-27
1 438.2 Joe $63.14 2019-07-14
2 831.1 Bob $51.84 2019-07-01
3 388.1 Matt $70.54 2017-02-19
4 169.6 Bill $86.24 2019-02-05
5 48.6 Joe $37.94 2019-11-23
6 751.8 Bob $82.94 2017-12-01
7 12.4 Matt $59.04 2020-03-01
8 92.8 Bill $74.74 2019-02-08
9 883.1 Joe $51.14 2017-02-12
10 953.7 Bob $22.64 2017-05-16
11 369.7 Matt $66.44 2019-05-16
12 142.4 Bill $49.54 2017-11-04
13 904.3 Joe $88.34 2020-01-29
14 921.2 Bob $5.33 2019-08-22
15 557 Matt $10.24 2017-09-02
16 444.3 Bill $85.34 2017-02-15
17 707.1 Joe $86.64 2018-12-31
18 679.2 Bob $95.84 2018-03-13
19 317 Matt $84.24 2019-10-26
20 328.3 Bill $79.54 2017-05-13
21 419.3 Joe $16.54 2019-06-21
22 141.2 Bob $30.74 2017-11-13
23 380.8 Matt $21.14 2017-07-01
24 325.6 Bill $13.24 2017-09-01
25 132 Joe $69.04 2017-12-27
26 317.2 Bob $13.44 2017-07-10
27 331 Matt $84.14 2017-02-05
28 935 Bill $52.04 2020-02-19
29 286.3 Joe $83.74 2019-08-19
30 148.7 Bob $16.54 2018-12-25
31 237.2 Matt $58.44 2019-07-04
32 990 Bill $72.54 2017-04-23
33 238 Joe $10.64 2017-12-23
34 369.3 Bob $43.24 2018-05-26
35 553.6 Matt $56.44 2017-05-31
36 839.4 Bill $88.14 2017-11-02
37 978.4 Joe $21.24 2017-05-02
38 983 Bob $14.74 2018-12-24
39 946 Matt $43.34 2018-06-19
40 750.3 Bill $58.24 2018-12-27
41 349.7 Joe $81.94 2017-09-01
42 113.8 Bob $80.94 2019-12-20
43 184.9 Matt $4.73 2017-02-19
44 467.5 Bill $41.64 2018-07-03
45 882.5 Joe $97.04 2017-02-13
46 986.9 Bob $80.94 2019-11-30
47 225 Matt $78.74 2017-05-31
48 303.8 Bill $77.04 2017-11-17
49 902.6 Joe $71.64 2019-04-02
50 338.2 Bob $46.64 2017-12-04
51 938.8 Matt $81.64 2017-05-08
52 123.7 Bill $93.04 2019-11-30
53 34 Joe $11.54 2020-01-23
54 50.5 Bob $58.24 2018-03-18
55 498.7 Matt $46.54 2018-02-11
56 510.6 Bill $45.14 2017-07-05
57 403.3 Joe $67.64 2020-01-02
58 507.7 Bob $98.04 2019-04-11
59 758.8 Matt $88.34 2018-05-17
60 442.8 Bill $22.14 2019-11-08
61 708.4 Joe $15.94 2019-04-09
62 792.8 Bob $28.34 2019-01-18
63 685.9 Matt $31.74 2019-05-31
64 625.7 Bill $36.84 2018-02-01
65 981.4 Joe $86.64 2019-07-23
66 306.6 Bob $37.74 2017-10-26
67 440.6 Matt $78.04 2019-12-18
68 361.9 Bill $28.84 2019-11-25
69 53.4 Joe $4.63 2019-07-12
70 461 Bob $48.94 2020-03-23
71 335.1 Matt $19.84 2017-07-24
72 25.2 Bill $99.04 2018-06-17
73 645.1 Joe $67.64 2019-06-19
74 379.6 Bob $30.24 2017-06-17
75 696.2 Matt $28.34 2020-03-15
76 477.2 Bill $59.04 2018-03-25
77 709.5 Joe $3.03 2017-07-13
78 618 Bob $39.24 2018-06-11
79 506.5 Matt $44.54 2018-08-04
80 277.4 Bill $90.64 2020-02-21
81 269.1 Joe $24.14 2017-08-06
82 420.1 Bob $26.64 2017-07-26
83 854.2 Matt $91.14 2019-09-16
84 605.4 Bill $29.14 2017-06-30
85 724.1 Joe $98.74 2018-05-23
86 708.9 Bob $46.44 2017-02-02
87 70.6 Matt $17.44 2017-03-09
88 212.2 Bill $79.24 2018-06-05
89 641.6 Joe $29.84 2019-11-03
90 117.2 Bob $57.64 2019-07-17
91 82 Matt $84.54 2017-02-19
92 244.1 Bill $26.54 2017-12-24
93 396.5 Joe $11.94 2017-09-13
94 224.8 Bob $72.44 2018-08-15
95 354.8 Matt $44.84 2018-07-31
96 767.7 Bill $15.74 2020-01-20
97 770 Joe $22.84 2017-06-08
98 802.4 Bob $44.04 2019-12-11
99 226.6 Matt $8.13 2017-09-20
100 95.9 Bill $19.84 2019-07-18
101 871.5 Joe $28.04 2019-01-19
102 888.3 Bob $52.44 2019-11-21
103 171.4 Matt $92.14 2017-02-04
104 365.9 Bill $14.64 2019-05-23
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 851.3 Bill $50.04 2017-08-22
1 323.9 Joe $26.84 2018-02-20
2 260.8 Bob $3.83 2018-11-10
3 371.5 Matt $84.04 2017-01-31
4 273.9 Mark $6.73 2017-05-05
5 474.5 Tom $16.34 2017-12-21
6 250.6 Jake $3.43 2018-11-10
7 871.3 Greg $92.24 2017-05-08
8 756.5 Adam $9.43 2017-02-06
9 760.5 Steve $45.94 2017-07-24
tfoot tfoot tfoot tfoot tfoot