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 867.7 Bill $38.24 2022-02-26
1 584.6 Joe $43.04 2021-11-05
2 684.9 Bob $89.94 2022-01-26
3 533.4 Matt $74.64 2020-08-16
4 930.5 Bill $80.94 2021-06-29
5 682.7 Joe $99.54 2020-03-01
6 464.1 Bob $6.53 2021-12-18
7 111.3 Matt $99.24 2022-05-12
8 636.3 Bill $27.74 2022-01-30
9 224.6 Joe $95.84 2020-11-22
10 560.9 Bob $82.54 2022-02-07
11 482.9 Matt $41.04 2020-04-18
12 307.5 Bill $9.53 2019-12-24
13 202.8 Joe $62.84 2022-05-05
14 641.6 Bob $55.94 2021-09-26
15 354.2 Matt $24.14 2021-09-21
16 648.4 Bill $70.54 2021-12-06
17 509.6 Joe $81.64 2021-11-26
18 496.6 Bob $45.34 2019-08-13
19 395.4 Matt $67.74 2019-06-24
20 918.8 Bill $23.84 2022-02-03
21 824.4 Joe $72.14 2020-03-22
22 159.9 Bob $2.83 2020-07-10
23 394.7 Matt $23.14 2019-05-06
24 375.6 Bill $87.34 2021-02-10
25 165.4 Joe $22.74 2021-11-16
26 950.7 Bob $87.54 2020-12-10
27 801.5 Matt $38.54 2020-05-11
28 644.4 Bill $88.14 2021-10-17
29 764.3 Joe $27.74 2020-10-08
30 841.7 Bob $19.54 2021-07-11
31 744.1 Matt $2.03 2020-08-22
32 56.3 Bill $18.04 2020-09-24
33 463 Joe $57.44 2021-06-18
34 497.7 Bob $95.04 2021-01-22
35 90.8 Matt $11.54 2021-10-11
36 924.9 Bill $6.63 2021-05-20
37 464.2 Joe $86.74 2019-06-07
38 819.7 Bob $51.14 2022-03-23
39 627.9 Matt $27.64 2019-12-07
40 113.1 Bill $11.74 2020-07-20
41 836.4 Joe $86.24 2020-08-12
42 280.4 Bob $91.84 2021-03-08
43 752.7 Matt $38.14 2019-11-01
44 456.1 Bill $87.84 2019-09-03
45 32.2 Joe $96.94 2020-01-14
46 835 Bob $89.44 2020-03-30
47 512.9 Matt $35.84 2019-10-29
48 575.6 Bill $17.84 2021-06-12
49 519.4 Joe $80.64 2022-04-27
50 739.9 Bob $91.94 2019-07-10
51 155.6 Matt $75.54 2022-04-02
52 591 Bill $3.53 2021-12-28
53 205.9 Joe $78.84 2020-01-11
54 394.9 Bob $24.44 2019-08-23
55 533.5 Matt $27.64 2019-07-18
56 787.2 Bill $11.14 2022-05-18
57 106.5 Joe $62.44 2020-05-05
58 293 Bob $20.04 2020-11-27
59 990.8 Matt $71.94 2020-04-16
60 964.4 Bill $45.94 2020-01-13
61 55.4 Joe $61.44 2019-04-04
62 7.7 Bob $20.54 2019-05-15
63 877.8 Matt $41.14 2021-11-12
64 128.5 Bill $80.64 2019-06-21
65 257.5 Joe $33.94 2020-05-06
66 355.6 Bob $12.74 2020-09-11
67 347.6 Matt $23.34 2019-07-04
68 697.7 Bill $52.64 2020-02-20
69 225.5 Joe $51.74 2019-04-01
70 558.9 Bob $48.14 2020-09-13
71 810.9 Matt $53.64 2019-06-24
72 818 Bill $54.44 2020-02-17
73 860.4 Joe $42.24 2021-06-07
74 690.8 Bob $55.04 2020-10-25
75 765.2 Matt $80.84 2021-11-22
76 115.8 Bill $16.34 2022-04-17
77 577.6 Joe $51.14 2019-11-11
78 663.4 Bob $20.84 2021-07-12
79 948.8 Matt $43.44 2019-12-30
80 953.1 Bill $99.24 2021-07-09
81 416.2 Joe $80.34 2020-01-19
82 493.6 Bob $62.14 2021-10-10
83 776.2 Matt $48.24 2019-12-11
84 469.9 Bill $17.24 2021-09-07
85 969.4 Joe $93.84 2021-01-28
86 808.3 Bob $5.33 2021-08-04
87 773.6 Matt $63.14 2020-01-16
88 971.9 Bill $29.44 2020-09-13
89 696 Joe $24.34 2022-01-28
90 936.7 Bob $19.64 2022-01-19
91 658.5 Matt $61.24 2021-06-06
92 916.5 Bill $10.64 2020-03-24
93 718.4 Joe $88.24 2021-10-03
94 942.1 Bob $35.24 2022-04-20
95 715.9 Matt $32.14 2022-02-07
96 297.2 Bill $12.94 2022-04-10
97 41.6 Joe $90.34 2021-02-06
98 296.6 Bob $87.54 2022-01-13
99 759.9 Matt $57.14 2019-08-20
100 656.8 Bill $50.74 2020-04-03
101 546.1 Joe $16.64 2022-03-13
102 238.8 Bob $8.23 2019-05-12
103 552.8 Matt $80.14 2022-02-26
104 348.4 Bill $74.34 2020-02-07
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 316.5 Bill $45.84 2021-02-12
1 222 Joe $75.64 2021-07-12
2 180.9 Bob $79.74 2021-03-21
3 770.5 Matt $9.43 2020-10-27
4 654.3 Mark $85.44 2019-06-18
5 781 Tom $51.04 2021-01-25
6 103.5 Jake $5.63 2021-08-05
7 38.2 Greg $29.54 2021-11-08
8 78.4 Adam $84.84 2021-03-22
9 0.4 Steve $19.64 2020-05-28
tfoot tfoot tfoot tfoot tfoot