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 652.4 Bill $71.64 2021-01-10
1 21.2 Joe $33.14 2021-11-06
2 713.1 Bob $53.44 2019-11-08
3 288.2 Matt $8.83 2019-10-18
4 147.9 Bill $65.34 2022-03-13
5 889.5 Joe $8.43 2022-06-13
6 664.9 Bob $68.54 2021-08-26
7 101.5 Matt $24.04 2020-07-06
8 835.8 Bill $61.64 2022-01-07
9 226.6 Joe $35.64 2020-10-27
10 73.1 Bob $0.83 2019-12-03
11 562.4 Matt $2.93 2020-12-21
12 310.7 Bill $74.24 2019-07-01
13 428.9 Joe $3.03 2019-10-10
14 529.1 Bob $17.84 2021-11-04
15 387 Matt $6.83 2022-02-10
16 324.4 Bill $73.34 2021-02-11
17 10.7 Joe $83.44 2021-11-15
18 336.9 Bob $67.04 2020-08-27
19 138.5 Matt $89.64 2021-10-13
20 562.8 Bill $96.94 2021-10-22
21 703 Joe $53.24 2021-11-25
22 174.4 Bob $84.24 2021-01-31
23 180.1 Matt $27.14 2021-03-07
24 273.2 Bill $80.04 2021-09-29
25 19.7 Joe $18.74 2021-12-17
26 850.6 Bob $51.24 2021-02-10
27 366.8 Matt $52.24 2020-08-02
28 122.7 Bill $85.94 2019-07-17
29 494.4 Joe $99.84 2022-05-19
30 221.9 Bob $56.04 2022-04-14
31 957.4 Matt $26.34 2020-10-19
32 722.1 Bill $43.84 2020-04-19
33 229.2 Joe $61.84 2021-02-27
34 766.7 Bob $89.14 2020-07-11
35 482.5 Matt $91.04 2021-02-13
36 266 Bill $76.14 2019-07-28
37 782 Joe $12.84 2021-03-24
38 131.9 Bob $25.04 2020-10-12
39 151.5 Matt $74.54 2020-10-09
40 67.5 Bill $96.74 2022-07-19
41 952.8 Joe $92.44 2020-03-18
42 369.8 Bob $64.64 2021-08-06
43 629.3 Matt $87.54 2020-05-21
44 159.9 Bill $64.24 2020-01-15
45 490.8 Joe $12.44 2019-10-03
46 8.9 Bob $39.04 2022-03-02
47 38.6 Matt $17.24 2022-07-27
48 590.5 Bill $30.44 2020-03-11
49 1.4 Joe $45.54 2022-07-21
50 409.7 Bob $52.34 2022-06-12
51 378.3 Matt $47.54 2022-03-16
52 609.9 Bill $84.54 2021-01-30
53 279 Joe $47.54 2020-09-08
54 565.6 Bob $63.44 2019-07-21
55 742.7 Matt $12.54 2019-12-11
56 830.1 Bill $13.44 2021-03-07
57 678.2 Joe $17.24 2021-09-22
58 653.8 Bob $76.34 2019-07-09
59 879.6 Matt $76.44 2020-12-17
60 850 Bill $17.44 2022-08-14
61 786.8 Joe $55.24 2020-12-15
62 647.4 Bob $16.24 2020-06-18
63 153.9 Matt $44.14 2021-12-19
64 535.3 Bill $0.73 2020-10-22
65 558.4 Joe $74.94 2021-03-16
66 705.6 Bob $57.94 2021-08-18
67 242.7 Matt $25.74 2022-03-06
68 951.8 Bill $91.14 2021-06-04
69 964.6 Joe $79.14 2020-09-04
70 432.6 Bob $64.04 2021-03-25
71 423.2 Matt $42.74 2019-10-23
72 889.3 Bill $7.53 2020-04-28
73 200.7 Joe $22.94 2021-09-20
74 986.5 Bob $76.44 2021-09-28
75 406.5 Matt $32.24 2020-12-11
76 951.7 Bill $2.83 2019-08-12
77 630.8 Joe $27.04 2020-06-05
78 482.4 Bob $22.24 2020-02-23
79 96.9 Matt $18.74 2019-06-26
80 475.6 Bill $61.94 2021-07-06
81 28.2 Joe $4.23 2019-09-12
82 133 Bob $93.24 2019-12-07
83 399.7 Matt $13.24 2020-08-28
84 107.4 Bill $11.94 2019-11-28
85 821.5 Joe $52.54 2020-12-05
86 284.8 Bob $47.74 2021-01-06
87 327.4 Matt $10.74 2021-11-15
88 627.2 Bill $59.04 2022-07-30
89 838 Joe $68.74 2019-12-31
90 839.3 Bob $16.24 2021-12-17
91 481.1 Matt $19.04 2022-02-03
92 550.2 Bill $32.34 2021-11-16
93 693.8 Joe $72.34 2022-04-18
94 65.9 Bob $83.04 2019-07-03
95 201.7 Matt $65.24 2021-03-02
96 659.5 Bill $93.74 2019-07-05
97 145 Joe $26.44 2019-11-06
98 900.7 Bob $89.14 2021-09-19
99 878.4 Matt $72.94 2020-09-21
100 42.7 Bill $56.84 2021-03-27
101 826 Joe $4.93 2021-11-02
102 651.4 Bob $59.94 2019-09-11
103 408.4 Matt $29.34 2021-12-26
104 297.5 Bill $35.94 2021-06-12
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 305.1 Bill $56.14 2020-05-05
1 837.7 Joe $22.04 2020-02-21
2 847 Bob $36.54 2020-12-22
3 963.7 Matt $26.64 2020-08-18
4 670 Mark $14.44 2019-10-09
5 62.7 Tom $18.74 2021-07-28
6 617.5 Jake $1.23 2021-09-23
7 362.6 Greg $66.44 2020-06-16
8 430.8 Adam $7.23 2021-05-21
9 221.8 Steve $37.04 2022-07-10
tfoot tfoot tfoot tfoot tfoot