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 357.9 Bill $71.34 2020-06-04
1 922.2 Joe $42.74 2021-11-15
2 289 Bob $58.84 2019-03-26
3 590.2 Matt $96.14 2020-07-28
4 837.8 Bill $89.14 2020-03-08
5 690.2 Joe $92.04 2020-09-03
6 693.2 Bob $33.04 2020-09-23
7 849.6 Matt $8.43 2021-12-08
8 930.8 Bill $1.53 2021-05-29
9 488.7 Joe $74.44 2019-06-26
10 234.1 Bob $10.24 2021-09-29
11 693.8 Matt $2.43 2019-12-05
12 610.7 Bill $31.34 2021-10-16
13 693.3 Joe $90.44 2021-09-01
14 199.7 Bob $74.14 2021-04-28
15 583.5 Matt $43.14 2021-01-25
16 121.6 Bill $12.54 2022-02-10
17 677 Joe $97.44 2019-03-18
18 613.8 Bob $90.54 2019-04-04
19 383.8 Matt $39.44 2021-08-13
20 546.3 Bill $62.84 2021-12-09
21 422.1 Joe $32.14 2022-01-06
22 724.7 Bob $93.24 2019-11-04
23 615.3 Matt $62.54 2019-07-15
24 467.1 Bill $82.54 2021-11-19
25 210.3 Joe $40.94 2020-01-31
26 872.9 Bob $53.04 2020-06-23
27 865.1 Matt $20.74 2020-05-24
28 941.1 Bill $82.14 2020-02-04
29 32 Joe $20.44 2021-05-05
30 867.3 Bob $75.14 2020-02-29
31 804.7 Matt $17.34 2021-03-07
32 766.6 Bill $89.74 2020-12-18
33 41.8 Joe $51.34 2019-10-11
34 220.6 Bob $98.04 2019-03-23
35 140.7 Matt $19.04 2020-07-08
36 492.3 Bill $6.33 2019-01-11
37 968.5 Joe $92.84 2019-09-07
38 418.9 Bob $86.94 2019-02-12
39 774.1 Matt $90.14 2019-10-06
40 523 Bill $76.84 2018-12-21
41 899.5 Joe $57.34 2019-07-09
42 597.3 Bob $33.94 2019-03-12
43 227.2 Matt $38.14 2020-10-26
44 482.5 Bill $60.24 2020-10-02
45 562.8 Joe $74.24 2021-05-10
46 51.5 Bob $23.54 2021-07-22
47 70.3 Matt $20.34 2021-04-29
48 296 Bill $62.24 2020-11-28
49 342.3 Joe $39.64 2020-08-05
50 592.9 Bob $91.94 2019-11-11
51 594.2 Matt $81.84 2021-09-04
52 768.2 Bill $41.64 2019-08-01
53 839.4 Joe $64.34 2020-10-15
54 423.2 Bob $12.54 2019-07-12
55 986.7 Matt $68.84 2021-11-17
56 740.1 Bill $73.94 2019-06-15
57 556.2 Joe $81.04 2020-02-05
58 300.1 Bob $10.64 2022-01-25
59 912.8 Matt $44.84 2020-02-26
60 426.4 Bill $4.13 2019-11-24
61 707.9 Joe $63.54 2019-04-28
62 562.2 Bob $40.34 2020-08-20
63 755.8 Matt $24.24 2019-07-04
64 330.4 Bill $66.54 2019-11-26
65 506.6 Joe $65.24 2022-01-30
66 425.2 Bob $39.24 2021-04-03
67 578.3 Matt $94.84 2020-08-25
68 934.5 Bill $24.84 2020-12-25
69 912.5 Joe $16.14 2019-03-27
70 286.5 Bob $58.74 2019-05-13
71 579.3 Matt $29.54 2021-05-17
72 690.4 Bill $85.84 2019-06-25
73 217 Joe $61.34 2020-04-01
74 386.3 Bob $94.34 2019-03-10
75 680.6 Matt $45.04 2021-04-03
76 662.8 Bill $87.54 2019-05-01
77 384.2 Joe $45.44 2019-03-02
78 915.2 Bob $38.84 2019-12-14
79 551.5 Matt $30.04 2020-06-17
80 635.5 Bill $58.74 2019-02-26
81 760 Joe $16.64 2020-02-03
82 519.2 Bob $85.64 2019-08-22
83 681.2 Matt $7.33 2021-07-31
84 85.4 Bill $46.04 2021-05-27
85 154.9 Joe $14.04 2019-08-29
86 876.5 Bob $80.34 2019-04-07
87 990.2 Matt $18.74 2020-09-13
88 52.2 Bill $10.24 2021-12-05
89 362.4 Joe $65.44 2019-09-18
90 833.8 Bob $28.94 2021-07-28
91 892.5 Matt $4.93 2022-02-05
92 246.5 Bill $56.84 2021-08-23
93 457.9 Joe $24.94 2021-11-16
94 282.5 Bob $33.54 2020-02-29
95 50.5 Matt $49.04 2020-08-09
96 268.6 Bill $36.64 2019-12-25
97 361.8 Joe $35.64 2020-07-29
98 908.4 Bob $40.84 2020-11-24
99 842.9 Matt $77.14 2019-10-20
100 77.7 Bill $60.54 2020-09-19
101 899.3 Joe $49.74 2020-11-15
102 886.9 Bob $74.34 2019-07-04
103 730.9 Matt $20.14 2020-04-18
104 648.2 Bill $48.44 2021-05-10
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 25.1 Bill $53.44 2019-09-28
1 542.1 Joe $80.34 2020-11-24
2 862.1 Bob $16.44 2022-01-11
3 369.2 Matt $7.33 2020-02-26
4 978.5 Mark $91.64 2019-06-05
5 241.5 Tom $99.34 2021-05-05
6 793.7 Jake $89.24 2019-10-01
7 395 Greg $77.94 2022-02-07
8 564.5 Adam $51.04 2019-07-28
9 983.5 Steve $15.84 2021-02-07
tfoot tfoot tfoot tfoot tfoot