Table Sorting Demo

This page contains two similar tables than can be dynamically sorted in a number of ways just by clicking on a column header. To reverse the sort order for a given column, click on it twice in a row.

The table's appearance and some of its content changes with each sort as well. In addition to style changes, the Rank column is updated to match the sorted column.

Use your browser's View Source option to see the full source code.

NFL 2001 Offensive Stats
Rank Team Gms Yds Yds/G RuYds RuYds/G PaYds PaYds/G Pts Pts/G
Arizona 16 4898 306.1 1449 90.6 3449 215.6 295 18.4
Atlanta 16 5070 316.9 1773 110.8 3297 206.1 291 18.2
Baltimore 16 4773 318.2 1598 106.5 3175 211.7 284 18.9
Buffalo 16 5137 321.1 1686 105.4 3451 215.7 265 16.6
Carolina 16 4254 265.9 1372 85.8 2882 180.1 253 15.8
Chicago 16 4694 293.4 1742 108.9 2952 184.5 338 21.1
Cincinnati 16 4800 300.0 1712 107.0 3088 193.0 226 14.1
Cleveland 16 4152 259.5 1351 84.4 2801 175.1 285 17.8
Dallas 16 4402 275.1 2184 136.5 2218 138.6 246 15.4
Denver 16 4817 301.1 1877 117.3 2940 183.8 340 21.2
Detroit 16 4994 312.1 1398 87.4 3596 224.8 270 16.9
Green Bay 16 5463 341.4 1693 105.8 3770 235.6 390 24.4
Indianapolis 16 5955 372.2 1966 122.9 3989 249.3 413 25.8
Jacksonville 16 4840 302.5 1600 100.0 3240 202.5 294 18.4
Kansas City 16 5673 354.6 2008 125.5 3665 229.1 320 20.0
Miami 16 4821 301.3 1664 104.0 3157 197.3 344 21.5
Minnesota 16 5006 333.7 1523 101.5 3483 232.2 287 19.1
New England 16 4882 305.1 1793 112.1 3089 193.1 371 23.2
New Orleans 16 5226 326.6 1712 107.0 3514 219.6 333 20.8
New York Giants 16 5335 333.4 1777 111.1 3558 222.4 294 18.4
New York Jets 16 4795 299.7 2054 128.4 2741 171.3 308 19.2
Oakland 16 5361 335.1 1654 103.4 3707 231.7 399 24.9
Philadelphia 16 4923 307.7 1778 111.1 3145 196.6 343 21.4
Pittsburgh 16 5887 367.9 2774 173.4 3113 194.6 352 22.0
Saint Louis 16 6690 418.1 2027 126.7 4663 291.4 503 31.4
San Diego 16 5200 325.0 1695 105.9 3505 219.1 332 20.8
San Francisco 16 5689 355.6 2244 140.2 3445 215.3 409 25.6
Seattle 16 4772 298.2 1936 121.0 2836 177.2 301 18.8
Tampa Bay 16 4694 293.4 1371 85.7 3323 207.7 324 20.2
Tennessee 16 5354 334.6 1796 112.2 3558 222.4 336 21.0
Washington 16 4435 277.2 1948 121.8 2487 155.4 256 16.0

NFL 2001 Defensive Stats
Rank Team Gms Yds Yds/G RuYds RuYds/G PaYds PaYds/G Pts Pts/G
Arizona 16 5685 355.3 2087 130.4 3598 224.9 343 21.4
Atlanta 16 5845 365.3 1943 121.4 3902 243.9 377 23.6
Baltimore 16 4267 284.5 1325 88.3 2942 196.1 262 17.5
Buffalo 16 5292 330.8 2133 133.3 3159 197.4 420 26.2
Carolina 16 5943 371.4 2301 143.8 3642 227.6 410 25.6
Chicago 16 4978 311.1 1313 82.1 3665 229.1 203 12.7
Cincinnati 16 4832 302.0 1675 104.7 3157 197.3 309 19.3
Cleveland 16 5297 331.1 2208 138.0 3089 193.1 319 19.9
Dallas 16 4599 287.4 1710 106.9 2889 180.6 338 21.1
Denver 16 4774 298.4 1492 93.2 3282 205.1 339 21.2
Detroit 16 5521 345.1 1993 124.6 3528 220.5 424 26.5
Green Bay 16 4937 308.6 1769 110.6 3168 198.0 266 16.6
Indianapolis 16 5715 357.2 2115 132.2 3600 225.0 486 30.4
Jacksonville 16 5070 316.9 1611 100.7 3459 216.2 286 17.9
Kansas City 16 5304 331.5 2140 133.8 3164 197.8 344 21.5
Miami 16 4608 288.0 1779 111.2 2829 176.8 290 18.1
Minnesota 16 5315 354.3 2087 139.1 3228 215.2 371 24.7
New England 16 5352 334.5 1855 115.9 3497 218.6 272 17.0
New Orleans 16 5070 316.9 1715 107.2 3355 209.7 409 25.6
New York Giants 16 4975 310.9 1545 96.6 3430 214.4 321 20.1
New York Jets 16 5153 322.1 2154 134.6 2999 187.4 295 18.4
Oakland 16 5071 316.9 1988 124.2 3083 192.7 327 20.4
Philadelphia 16 4701 293.8 1837 114.8 2864 179.0 208 13.0
Pittsburgh 16 4139 258.7 1197 74.8 2942 183.9 212 13.2
Saint Louis 16 4471 279.4 1385 86.6 3086 192.9 273 17.1
San Diego 16 4904 306.5 1504 94.0 3400 212.5 321 20.1
San Francisco 16 4954 309.6 1571 98.2 3383 211.4 282 17.6
Seattle 16 5206 325.4 1721 107.6 3485 217.8 324 20.2
Tampa Bay 16 4653 290.8 1702 106.4 2951 184.4 280 17.5
Tennessee 16 5515 344.7 1431 89.4 4084 255.2 388 24.2
Washington 16 4846 302.9 1869 116.8 2977 186.1 303 18.9