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 734.9 Bill $53.74 2020-06-18
1 836.7 Joe $25.14 2022-06-22
2 386.4 Bob $74.64 2021-03-20
3 80.1 Matt $13.34 2019-10-15
4 547.7 Bill $46.34 2022-08-03
5 390.8 Joe $69.14 2020-06-22
6 415.7 Bob $19.04 2021-12-17
7 540.7 Matt $39.64 2020-05-29
8 746.1 Bill $74.24 2022-01-01
9 893.3 Joe $70.14 2020-01-02
10 326.4 Bob $43.64 2021-09-15
11 638.8 Matt $27.24 2022-07-02
12 584.8 Bill $65.94 2021-09-11
13 134.4 Joe $73.94 2022-02-12
14 232.9 Bob $28.64 2020-06-01
15 215.1 Matt $67.74 2022-08-10
16 530.4 Bill $9.33 2020-01-15
17 314.6 Joe $63.34 2021-04-17
18 609.3 Bob $37.94 2020-06-22
19 406.9 Matt $27.34 2019-07-12
20 573.8 Bill $59.94 2020-11-27
21 277.7 Joe $23.84 2021-10-08
22 232.7 Bob $82.24 2020-09-08
23 933.5 Matt $95.74 2019-11-10
24 767.6 Bill $19.04 2020-10-07
25 64.8 Joe $40.54 2019-09-29
26 53.2 Bob $93.54 2020-01-14
27 231.1 Matt $25.04 2022-01-16
28 804.9 Bill $85.94 2020-01-29
29 120.3 Joe $26.64 2020-12-09
30 136.6 Bob $83.94 2019-09-02
31 588.3 Matt $11.74 2020-06-03
32 312.4 Bill $35.04 2019-11-11
33 694.9 Joe $28.34 2019-09-22
34 816.1 Bob $5.13 2020-04-28
35 223.7 Matt $11.54 2021-08-09
36 308.2 Bill $16.94 2021-05-26
37 485.5 Joe $40.04 2022-03-11
38 296.1 Bob $20.44 2021-09-28
39 486.1 Matt $32.54 2022-08-02
40 948.6 Bill $46.14 2022-01-28
41 10.2 Joe $5.03 2022-06-12
42 309.4 Bob $36.24 2020-05-21
43 431.1 Matt $5.73 2021-04-13
44 509.6 Bill $87.34 2021-06-11
45 777.6 Joe $9.63 2021-10-23
46 450.3 Bob $40.54 2022-05-06
47 58 Matt $89.04 2020-06-10
48 915.1 Bill $18.64 2021-02-01
49 631 Joe $67.24 2022-02-12
50 612.5 Bob $62.14 2020-05-29
51 433.4 Matt $63.14 2020-07-26
52 371.3 Bill $94.04 2021-09-17
53 658.9 Joe $37.14 2021-11-22
54 229.6 Bob $88.14 2021-06-28
55 850.9 Matt $65.84 2021-10-17
56 587.6 Bill $10.94 2019-11-28
57 492.8 Joe $16.64 2019-07-24
58 797.6 Bob $8.23 2020-02-24
59 306.8 Matt $71.34 2022-04-12
60 140.6 Bill $32.54 2021-01-28
61 435.7 Joe $75.84 2019-11-27
62 780.3 Bob $13.04 2019-09-19
63 486.6 Matt $78.84 2020-11-22
64 249.6 Bill $1.83 2020-07-07
65 885.4 Joe $86.94 2022-08-08
66 617.5 Bob $45.64 2019-10-11
67 754.2 Matt $94.94 2020-04-21
68 780.9 Bill $74.74 2020-07-24
69 993.6 Joe $5.33 2019-08-26
70 878.4 Bob $19.44 2020-09-05
71 383.8 Matt $63.04 2019-12-01
72 520 Bill $41.04 2020-04-29
73 596.3 Joe $89.64 2019-08-28
74 43.8 Bob $14.64 2019-09-18
75 372 Matt $3.13 2022-06-19
76 358.5 Bill $64.94 2020-09-28
77 453.6 Joe $40.34 2020-07-31
78 715.2 Bob $18.44 2019-10-11
79 58.4 Matt $17.84 2019-12-12
80 114 Bill $5.63 2020-07-24
81 494.7 Joe $44.04 2022-07-22
82 633.7 Bob $96.04 2020-09-07
83 902.2 Matt $55.64 2020-05-10
84 959.2 Bill $60.04 2020-10-26
85 34.1 Joe $97.24 2020-12-01
86 977.7 Bob $33.04 2019-10-22
87 377.7 Matt $78.44 2021-01-30
88 726.7 Bill $49.94 2021-08-31
89 822.2 Joe $55.74 2022-03-25
90 971.1 Bob $67.14 2022-05-28
91 313.9 Matt $16.64 2020-08-18
92 286.2 Bill $79.94 2020-07-02
93 668.4 Joe $70.24 2022-04-06
94 946.9 Bob $66.14 2020-12-29
95 371.5 Matt $69.54 2020-11-26
96 827.3 Bill $67.24 2021-12-13
97 932.1 Joe $5.03 2021-04-06
98 439.8 Bob $77.74 2019-09-04
99 131.3 Matt $59.94 2021-06-10
100 0.3 Bill $57.04 2020-05-25
101 925.1 Joe $88.44 2020-12-03
102 289.5 Bob $17.04 2020-04-14
103 613.4 Matt $83.84 2022-07-05
104 493.2 Bill $78.54 2021-06-07
tfoot tfoot tfoot tfoot tfoot
< < Previous Page  of Next > >
 of  rows match filter(s)

Index Numeric Text Currency Date
0 972.6 Bill $15.64 2020-06-19
1 423.5 Joe $98.44 2022-08-06
2 204.5 Bob $91.64 2019-08-03
3 769 Matt $35.54 2022-01-17
4 832.3 Mark $48.74 2020-10-10
5 452.6 Tom $48.74 2022-07-31
6 744 Jake $41.24 2022-03-18
7 201 Greg $70.14 2019-07-31
8 457.2 Adam $31.54 2022-03-27
9 414.9 Steve $80.84 2021-07-21
tfoot tfoot tfoot tfoot tfoot