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 520.5 Bill $63.94 2018-04-07
1 237.9 Joe $58.24 2018-10-28
2 779.8 Bob $2.43 2017-03-03
3 184 Matt $81.84 2017-02-07
4 520.5 Bill $93.94 2019-01-08
5 643.9 Joe $9.33 2018-10-22
6 460.4 Bob $21.84 2018-12-18
7 907.8 Matt $97.84 2019-05-20
8 8.9 Bill $16.94 2020-03-21
9 879.2 Joe $12.94 2019-10-27
10 617.2 Bob $65.04 2018-09-04
11 990 Matt $88.84 2017-05-08
12 538.9 Bill $66.74 2017-06-05
13 565.8 Joe $85.14 2020-01-07
14 572.3 Bob $37.24 2019-10-28
15 184 Matt $1.63 2020-02-12
16 728.1 Bill $47.64 2017-08-21
17 321.6 Joe $38.44 2017-07-26
18 46.9 Bob $39.34 2018-02-07
19 36.9 Matt $27.24 2018-07-07
20 900.3 Bill $88.94 2017-05-27
21 402.9 Joe $87.94 2020-03-20
22 487.4 Bob $41.84 2019-03-01
23 595.7 Matt $98.34 2018-09-10
24 521.4 Bill $55.64 2019-11-14
25 385.8 Joe $74.04 2019-12-02
26 342.9 Bob $46.84 2018-04-05
27 517.9 Matt $78.94 2019-06-23
28 670.9 Bill $83.64 2017-07-20
29 992.7 Joe $87.34 2018-05-30
30 444 Bob $77.34 2018-01-22
31 544.9 Matt $17.64 2017-09-03
32 533.5 Bill $66.34 2018-12-31
33 189.4 Joe $25.94 2018-12-12
34 696.6 Bob $78.04 2017-07-15
35 575.7 Matt $16.64 2019-11-18
36 470.4 Bill $50.94 2018-03-12
37 841.1 Joe $2.73 2017-07-11
38 595.6 Bob $69.84 2020-03-04
39 742.8 Matt $69.04 2019-10-09
40 161.7 Bill $13.44 2019-01-20
41 469.5 Joe $67.94 2019-08-11
42 656.1 Bob $21.24 2018-07-17
43 260.3 Matt $40.24 2019-05-13
44 848 Bill $9.83 2018-09-01
45 991.2 Joe $67.44 2019-03-12
46 874 Bob $14.44 2017-08-20
47 224.4 Matt $98.54 2017-09-20
48 363.9 Bill $58.14 2019-12-06
49 339.4 Joe $32.44 2018-12-13
50 187.6 Bob $48.54 2019-05-17
51 808.9 Matt $95.54 2018-05-10
52 606.1 Bill $61.14 2019-01-11
53 66.6 Joe $87.14 2017-02-18
54 785.9 Bob $71.94 2017-06-11
55 285.4 Matt $71.04 2019-07-31
56 950.9 Bill $58.44 2020-01-14
57 125.2 Joe $80.84 2019-12-28
58 326.2 Bob $17.24 2018-08-30
59 224.7 Matt $51.14 2019-09-09
60 813.3 Bill $69.94 2018-01-21
61 536 Joe $50.84 2017-11-29
62 937.7 Bob $11.44 2019-11-06
63 551.7 Matt $18.14 2019-06-10
64 567.4 Bill $96.64 2018-07-19
65 681.5 Joe $25.24 2017-08-17
66 469.5 Bob $20.34 2019-06-24
67 401.8 Matt $32.84 2018-11-14
68 319.3 Bill $65.44 2019-06-02
69 817.7 Joe $87.94 2017-11-13
70 639.7 Bob $69.24 2020-01-31
71 946.8 Matt $22.84 2018-07-11
72 208.4 Bill $16.64 2018-11-20
73 80.7 Joe $71.74 2019-06-17
74 823.9 Bob $28.44 2019-05-09
75 286 Matt $96.64 2020-02-24
76 458 Bill $43.54 2017-08-15
77 213.9 Joe $83.74 2018-08-30
78 778.1 Bob $15.64 2017-07-25
79 514.4 Matt $97.44 2017-03-07
80 762.2 Bill $61.44 2019-05-17
81 709.1 Joe $56.04 2020-02-04
82 163.9 Bob $76.94 2017-06-13
83 732.8 Matt $85.04 2019-09-21
84 482.2 Bill $67.34 2017-06-15
85 198 Joe $95.94 2017-05-07
86 165.6 Bob $41.74 2018-09-23
87 335.8 Matt $63.14 2018-03-18
88 833.9 Bill $40.94 2018-09-15
89 986 Joe $92.34 2018-08-16
90 16.6 Bob $68.64 2017-05-26
91 739.2 Matt $39.54 2019-03-06
92 689.5 Bill $55.94 2018-06-11
93 805.3 Joe $29.14 2017-12-19
94 638.1 Bob $77.44 2020-02-06
95 755.3 Matt $97.24 2019-12-21
96 838.5 Bill $13.74 2018-02-15
97 357.1 Joe $47.34 2020-02-15
98 712.7 Bob $30.74 2018-04-02
99 224.8 Matt $29.34 2018-01-03
100 711 Bill $30.94 2020-03-07
101 810.8 Joe $4.83 2018-04-06
102 471 Bob $73.84 2020-01-13
103 900 Matt $54.34 2017-10-15
104 178.5 Bill $18.14 2020-03-28
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 130.4 Bill $93.64 2020-02-24
1 41.6 Joe $77.54 2017-05-31
2 370 Bob $13.24 2018-11-29
3 329.5 Matt $84.54 2019-11-19
4 698.1 Mark $6.93 2017-08-23
5 990.1 Tom $78.04 2018-08-15
6 967.7 Jake $59.14 2018-10-10
7 339.9 Greg $6.23 2017-12-11
8 270.7 Adam $96.24 2019-08-31
9 492.9 Steve $14.04 2020-03-28
tfoot tfoot tfoot tfoot tfoot