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 824.3 Bill $79.04 2018-02-21
1 135.9 Joe $78.24 2016-07-22
2 614.8 Bob $31.04 2017-12-18
3 106.1 Matt $0.63 2018-09-14
4 607.1 Bill $37.54 2018-11-20
5 637.7 Joe $3.53 2018-06-22
6 429 Bob $67.44 2017-02-11
7 318.7 Matt $9.33 2017-08-19
8 515.8 Bill $86.84 2019-06-12
9 162.8 Joe $56.94 2019-04-01
10 715 Bob $39.44 2018-08-02
11 230.8 Matt $53.04 2017-11-22
12 245.4 Bill $14.44 2018-11-16
13 704.8 Joe $25.04 2018-11-23
14 397.2 Bob $85.74 2016-11-30
15 147.3 Matt $49.54 2017-01-09
16 767 Bill $92.44 2019-02-28
17 958.4 Joe $24.24 2019-06-16
18 312.6 Bob $75.84 2019-01-15
19 239.2 Matt $92.14 2017-09-03
20 103.9 Bill $63.64 2018-12-03
21 759 Joe $86.74 2017-06-06
22 196 Bob $11.24 2017-11-20
23 942.9 Matt $81.74 2018-09-05
24 696.1 Bill $21.44 2018-03-24
25 824.5 Joe $36.14 2016-08-16
26 987.3 Bob $12.84 2019-07-22
27 824.3 Matt $8.73 2017-02-25
28 754.5 Bill $39.94 2019-07-22
29 552.9 Joe $63.84 2019-04-22
30 920.6 Bob $74.24 2018-02-24
31 681.8 Matt $50.14 2017-09-23
32 972.4 Bill $69.74 2018-01-30
33 407.2 Joe $64.04 2017-07-02
34 92.2 Bob $33.64 2018-03-07
35 634.4 Matt $16.04 2019-04-29
36 671.4 Bill $14.84 2016-07-23
37 632.1 Joe $97.24 2016-10-31
38 835.2 Bob $72.64 2018-02-05
39 796.4 Matt $27.94 2016-12-13
40 678.5 Bill $20.04 2019-04-21
41 196.5 Joe $88.14 2017-09-20
42 581 Bob $85.44 2016-10-05
43 77.5 Matt $26.14 2018-10-15
44 390.6 Bill $35.34 2016-09-06
45 917.7 Joe $98.74 2017-03-10
46 805.8 Bob $65.94 2017-08-28
47 822 Matt $29.14 2017-07-27
48 924.5 Bill $12.64 2016-09-13
49 426.1 Joe $92.24 2017-08-01
50 565.9 Bob $60.14 2018-03-20
51 447.5 Matt $79.74 2017-11-03
52 830.1 Bill $37.84 2017-05-18
53 909.5 Joe $45.54 2018-03-16
54 628.5 Bob $84.64 2019-04-28
55 683.3 Matt $76.44 2019-04-13
56 898.3 Bill $57.04 2018-03-14
57 260.8 Joe $39.14 2019-02-14
58 595.1 Bob $31.64 2019-07-10
59 655.5 Matt $74.24 2019-04-10
60 994.9 Bill $30.84 2018-01-03
61 533.9 Joe $75.54 2017-05-13
62 954.1 Bob $58.54 2018-07-25
63 228 Matt $49.54 2016-11-02
64 762.7 Bill $12.34 2019-07-09
65 650.5 Joe $80.74 2018-10-08
66 525.5 Bob $70.54 2017-05-28
67 59.2 Matt $96.54 2018-08-24
68 883.6 Bill $56.04 2019-08-24
69 833.9 Joe $21.64 2018-10-30
70 706.4 Bob $21.14 2016-08-19
71 179.5 Matt $74.54 2019-01-10
72 449.7 Bill $69.94 2017-09-17
73 97.8 Joe $92.74 2019-04-13
74 201.5 Bob $68.94 2019-09-02
75 151.1 Matt $34.04 2019-01-21
76 864.4 Bill $86.54 2018-02-13
77 147.1 Joe $92.44 2018-01-04
78 821.2 Bob $80.84 2016-08-14
79 811 Matt $64.24 2017-04-21
80 542.7 Bill $34.84 2017-12-21
81 582.1 Joe $52.84 2017-02-28
82 376.7 Bob $97.74 2019-05-18
83 756.6 Matt $7.53 2019-02-21
84 631.1 Bill $27.64 2018-02-27
85 628.8 Joe $42.74 2019-03-27
86 432.8 Bob $29.24 2018-10-22
87 941.6 Matt $43.94 2018-07-26
88 415.7 Bill $26.04 2017-12-16
89 450.3 Joe $7.13 2016-10-27
90 700.9 Bob $61.44 2017-12-04
91 162.2 Matt $19.64 2019-08-06
92 368.1 Bill $57.24 2019-07-11
93 272.6 Joe $32.94 2016-08-04
94 103.6 Bob $96.04 2017-06-20
95 623.9 Matt $58.94 2018-10-27
96 483.8 Bill $2.13 2016-07-30
97 208.8 Joe $96.34 2017-12-19
98 858 Bob $37.94 2018-10-16
99 315.1 Matt $82.94 2019-01-06
100 413.8 Bill $53.04 2017-10-16
101 860.6 Joe $69.24 2018-05-30
102 834.8 Bob $6.03 2017-01-20
103 786.1 Matt $33.24 2018-02-05
104 812.4 Bill $43.64 2017-12-20
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 114.9 Bill $6.03 2016-08-31
1 844.8 Joe $54.44 2016-09-25
2 866.4 Bob $75.24 2016-08-13
3 326.8 Matt $61.04 2017-10-25
4 47.1 Mark $92.54 2017-04-09
5 838.2 Tom $33.94 2018-12-13
6 242.8 Jake $19.94 2017-12-22
7 842.9 Greg $3.43 2018-03-01
8 15.3 Adam $82.04 2019-03-20
9 516.4 Steve $63.24 2017-06-06
tfoot tfoot tfoot tfoot tfoot