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 558.2 Bill $93.84 2018-09-08
1 998 Joe $9.33 2019-09-01
2 850.6 Bob $45.34 2019-11-13
3 552.3 Matt $22.44 2021-04-17
4 23.7 Bill $91.94 2021-02-07
5 834.2 Joe $30.54 2020-02-08
6 974.5 Bob $95.04 2018-11-29
7 156.3 Matt $24.64 2021-06-17
8 133 Bill $36.54 2019-07-15
9 205.5 Joe $10.34 2018-05-13
10 370.1 Bob $66.14 2021-05-02
11 485 Matt $65.94 2018-06-18
12 909.1 Bill $51.04 2019-11-24
13 395.8 Joe $6.23 2020-08-10
14 332.8 Bob $8.63 2020-05-08
15 210.4 Matt $92.04 2021-04-27
16 772.7 Bill $89.44 2021-02-28
17 958.6 Joe $5.13 2018-10-09
18 948.8 Bob $18.44 2019-12-06
19 331.5 Matt $38.94 2020-04-04
20 344.6 Bill $75.94 2019-03-09
21 295.1 Joe $24.44 2021-04-10
22 339.1 Bob $15.34 2019-09-20
23 835.7 Matt $54.94 2019-12-01
24 556.7 Bill $88.24 2020-03-09
25 196.9 Joe $9.23 2019-12-08
26 142.4 Bob $86.54 2019-08-08
27 38.3 Matt $82.34 2019-10-05
28 180 Bill $77.24 2020-05-05
29 687.1 Joe $10.34 2018-05-29
30 297.3 Bob $44.84 2020-10-23
31 568.9 Matt $74.34 2018-06-01
32 499.8 Bill $8.23 2018-11-25
33 940.4 Joe $91.84 2020-08-21
34 443.2 Bob $47.44 2020-04-06
35 31.8 Matt $67.14 2020-07-21
36 540.3 Bill $81.34 2020-02-16
37 943.3 Joe $85.24 2019-07-26
38 396.9 Bob $3.23 2018-11-04
39 34.1 Matt $71.94 2019-03-03
40 60.2 Bill $1.63 2020-08-02
41 845.5 Joe $58.54 2019-10-10
42 874.8 Bob $8.43 2020-01-12
43 57.1 Matt $2.53 2019-10-09
44 788.1 Bill $46.84 2021-04-10
45 400.6 Joe $50.04 2020-03-25
46 105 Bob $4.03 2019-08-22
47 673.8 Matt $98.34 2019-03-04
48 65.7 Bill $38.04 2019-04-09
49 229.4 Joe $41.44 2018-05-18
50 496.3 Bob $47.44 2018-06-06
51 210.9 Matt $32.04 2020-04-12
52 668.3 Bill $19.44 2020-07-19
53 207.6 Joe $25.14 2020-08-17
54 664.4 Bob $4.03 2018-12-10
55 595.5 Matt $44.04 2020-07-10
56 197.5 Bill $54.54 2020-08-25
57 613.1 Joe $21.94 2020-08-06
58 880.3 Bob $28.44 2018-08-19
59 179 Matt $51.44 2019-12-11
60 196.3 Bill $1.03 2021-06-12
61 229.4 Joe $22.14 2019-04-17
62 847.1 Bob $88.94 2019-11-28
63 549.3 Matt $9.73 2020-09-14
64 276.2 Bill $76.14 2020-10-29
65 471 Joe $35.74 2019-01-20
66 165.4 Bob $55.44 2020-10-12
67 899.8 Matt $16.74 2021-06-22
68 617.3 Bill $4.73 2019-03-17
69 714.8 Joe $22.64 2020-11-01
70 226.4 Bob $42.24 2020-11-12
71 212.1 Matt $65.24 2018-05-26
72 517.5 Bill $49.94 2021-03-20
73 17.2 Joe $4.83 2018-05-09
74 768.4 Bob $32.44 2020-10-06
75 559 Matt $79.54 2018-09-23
76 789.7 Bill $96.14 2020-06-25
77 565.5 Joe $86.04 2021-01-04
78 560 Bob $47.84 2021-02-28
79 839 Matt $19.24 2018-09-17
80 631.9 Bill $41.94 2020-01-19
81 434.7 Joe $63.14 2018-12-12
82 458.4 Bob $14.84 2020-07-11
83 371.2 Matt $16.54 2020-09-05
84 380.9 Bill $93.44 2018-07-16
85 151.6 Joe $49.34 2021-01-21
86 279 Bob $28.24 2020-12-06
87 960.3 Matt $84.84 2020-06-28
88 808.8 Bill $40.84 2018-11-01
89 704.6 Joe $24.74 2019-06-12
90 826.7 Bob $87.84 2020-10-08
91 371.2 Matt $31.34 2019-08-08
92 567.5 Bill $77.14 2020-01-26
93 262.8 Joe $14.34 2020-08-04
94 6.2 Bob $52.34 2020-05-20
95 73.8 Matt $67.54 2018-10-10
96 936.6 Bill $95.44 2019-09-02
97 760 Joe $91.44 2019-03-10
98 443.7 Bob $72.34 2020-06-23
99 605 Matt $42.84 2021-04-05
100 958.6 Bill $25.44 2020-11-15
101 730.9 Joe $62.54 2018-09-12
102 133.9 Bob $19.34 2021-02-20
103 685 Matt $45.54 2018-06-04
104 401.4 Bill $46.14 2020-01-31
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 51.4 Bill $53.54 2019-01-19
1 193.9 Joe $47.24 2018-11-27
2 618.7 Bob $23.24 2018-08-20
3 891 Matt $67.54 2020-12-03
4 571 Mark $28.14 2019-02-10
5 497.5 Tom $23.94 2019-12-01
6 302.4 Jake $97.04 2018-09-23
7 420.2 Greg $10.44 2019-05-04
8 309.4 Adam $78.94 2020-10-12
9 341.1 Steve $19.04 2019-01-28
tfoot tfoot tfoot tfoot tfoot