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 225.5 Bill $1.43 2021-02-14
1 102 Joe $54.24 2020-02-26
2 211.8 Bob $94.24 2021-05-22
3 317.9 Matt $89.34 2020-09-01
4 416.8 Bill $24.14 2021-04-27
5 437.1 Joe $61.44 2019-09-22
6 872.8 Bob $2.83 2021-08-04
7 539 Matt $69.94 2021-09-06
8 267 Bill $38.04 2020-09-14
9 325 Joe $37.94 2021-06-18
10 585.9 Bob $60.44 2021-07-04
11 321 Matt $70.64 2020-01-21
12 749.7 Bill $91.84 2019-11-15
13 568.7 Joe $23.64 2019-07-14
14 160.3 Bob $65.34 2020-04-17
15 957.8 Matt $9.03 2019-01-26
16 251.4 Bill $96.34 2019-02-28
17 134 Joe $50.24 2021-05-17
18 45.4 Bob $76.84 2019-05-30
19 648.3 Matt $9.33 2020-08-11
20 490.6 Bill $67.94 2019-05-11
21 346.7 Joe $0.03 2021-08-05
22 744.8 Bob $75.04 2021-05-03
23 84.5 Matt $31.94 2018-11-30
24 317.4 Bill $47.94 2020-12-25
25 790.8 Joe $43.64 2021-04-08
26 878.1 Bob $68.84 2021-02-23
27 993.3 Matt $82.24 2019-07-28
28 807.5 Bill $86.74 2018-11-01
29 1.7 Joe $51.54 2019-02-18
30 574.7 Bob $0.63 2021-04-14
31 752.2 Matt $35.34 2021-04-14
32 636 Bill $9.73 2020-06-29
33 437.9 Joe $18.24 2021-07-02
34 475.8 Bob $49.94 2019-11-07
35 166.5 Matt $29.04 2021-03-26
36 947 Bill $16.84 2020-03-29
37 690.1 Joe $16.14 2019-09-05
38 934.7 Bob $96.94 2019-04-04
39 947.7 Matt $97.04 2020-11-20
40 54.2 Bill $54.54 2020-11-27
41 840 Joe $29.74 2018-11-09
42 626 Bob $93.34 2019-03-02
43 161.8 Matt $37.14 2019-09-28
44 16 Bill $84.74 2021-04-28
45 348.9 Joe $1.33 2019-01-27
46 118.2 Bob $96.04 2019-08-09
47 575.2 Matt $65.04 2020-02-12
48 854 Bill $58.54 2020-01-07
49 999.7 Joe $53.24 2019-12-03
50 660.8 Bob $58.74 2021-08-25
51 327.7 Matt $42.64 2019-06-04
52 347.3 Bill $5.23 2019-03-18
53 464.1 Joe $21.44 2020-05-21
54 762.8 Bob $23.04 2019-11-25
55 560.6 Matt $57.94 2019-12-10
56 648.3 Bill $69.74 2019-10-25
57 904 Joe $27.24 2021-11-15
58 320.9 Bob $12.64 2020-07-23
59 706.5 Matt $12.64 2019-01-28
60 62.4 Bill $78.74 2020-12-07
61 963.4 Joe $11.44 2019-02-12
62 161.5 Bob $46.14 2019-04-14
63 292.7 Matt $92.64 2019-12-18
64 794.8 Bill $68.84 2020-09-09
65 143.6 Joe $24.94 2019-05-11
66 505.4 Bob $89.74 2021-07-25
67 827.3 Matt $80.14 2019-04-05
68 799.3 Bill $12.24 2019-08-29
69 355.8 Joe $82.84 2020-01-22
70 444.8 Bob $89.14 2019-05-20
71 120.2 Matt $85.44 2019-09-29
72 222.1 Bill $1.53 2021-03-16
73 376.4 Joe $30.84 2020-12-20
74 744.7 Bob $10.34 2019-12-25
75 343.1 Matt $24.64 2020-10-08
76 520.4 Bill $75.24 2020-06-11
77 394.7 Joe $57.94 2019-10-24
78 541.3 Bob $37.84 2020-03-13
79 814 Matt $73.44 2019-08-27
80 212.6 Bill $17.94 2019-04-23
81 397.7 Joe $29.94 2018-11-05
82 697.1 Bob $52.14 2018-11-23
83 458 Matt $89.74 2019-11-14
84 144.4 Bill $64.24 2020-03-12
85 519 Joe $98.54 2020-12-22
86 142.4 Bob $50.54 2020-03-10
87 662.8 Matt $90.04 2018-11-08
88 984.1 Bill $44.14 2020-01-20
89 427.3 Joe $25.54 2019-03-18
90 698.6 Bob $46.84 2019-10-11
91 860.5 Matt $86.54 2020-09-20
92 876.4 Bill $56.34 2019-03-16
93 907.7 Joe $2.03 2018-11-17
94 246.9 Bob $16.54 2020-11-29
95 689 Matt $68.44 2020-11-11
96 377.2 Bill $82.64 2019-04-19
97 817.1 Joe $48.94 2018-12-24
98 835.9 Bob $47.34 2020-05-18
99 232.8 Matt $90.04 2021-03-09
100 363.6 Bill $59.94 2019-07-02
101 673.1 Joe $45.94 2019-01-27
102 281.3 Bob $33.54 2020-11-09
103 410.5 Matt $24.34 2020-12-02
104 436.8 Bill $49.04 2021-06-11
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 105 Bill $17.94 2020-06-10
1 758.2 Joe $55.64 2019-11-21
2 916.7 Bob $37.34 2021-06-09
3 975.2 Matt $20.94 2019-10-08
4 474.9 Mark $44.24 2019-06-14
5 229.9 Tom $80.54 2021-05-07
6 452.7 Jake $47.94 2019-08-20
7 540.9 Greg $76.04 2020-09-11
8 191.6 Adam $17.04 2021-06-20
9 862.8 Steve $60.74 2019-11-07
tfoot tfoot tfoot tfoot tfoot