Skip to content

Pulstarter/tablesorter

 
 

Repository files navigation

tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.

Demos

Features

  • Multi-column alphanumeric sorting.
  • Multi-tbody sorting - see the options table on the main document page.
  • Parsers for sorting text, alphanumeric text, URIs, integers, currency, floats, IP addresses, dates (ISO, long and short formats) & time. Add your own easily.
  • Support for ROWSPAN and COLSPAN on TH elements.
  • Support secondary "hidden" sorting (e.g., maintain alphabetical sort when sorting on other criteria).
  • Extensibility via widget system.
  • Cross-browser: IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+.
  • Small code size.
  • Works with jQuery 1.2.6+ (jQuery 1.4.1+ needed with some widgets).
  • Works with jQuery 1.9+ ($.browser.msie was removed; needed in the original version).

Licensing

Special Thanks

  • Big shout-out to Nick Craver for getting rid of the eval() function that was previously needed for multi-column sorting.
  • Big thanks to thezoggy for helping with code, themes and providing valuable feedback.
  • Big thanks to ThsSin- for taking over for a while and also providing valuable feedback.
  • And, of course thanks to everyone else that has contributed, and continues to contribute to this forked project!

Change Log

View the complete listing here.

Version 3.0.1 beta (11/2/2013)

  • Updated with changes made to v2.13.1 & v2.13.2.
    • updated filter widget
    • pager plugin & pager widget (countChildRows)
    • editable widget
  • Note!
    • Version 3 will be modularized so that the core plugin will only deal with widgets & contain some basic utility functions which are used by various widgets. Yes, this means sorting will also become a widget.
    • This beta version no longer supports older versions of jQuery; You now need at least jQuery v1.4.3+ (untested).
    • This is still in beta, so I have yet to rename/reorganize the options.
    • This branch is up-to-date with version 2.13.0.
    • Documentation, minified files and component.json files have not been updated!
    • Please don't open a new issue, add any comments and/or suggestions to issue #122.
    • I am open-minded & I will listen to any and all of your valuable feedback!
  • Plugin restructured to not use "new" - anticipating making the plugin compatible with Zepto.
  • Plugin reorganized
    • Moved almost all functions into "categories": widgets, parsers, build, sort & utility.
    • Renamed a bunch of functions so everything makes more sense (e.g. $.tablesorter.addWidget is now $.tablesorter.widget.add; major functions like this are mapped back to addWidget to ease you into this version)
    • Updated all parsers & widgets to use the updated function names - I might have missed some.
    • Updated tests
  • Added basic Zepto support
    • tablesorter appears to function normally - minimum requirements of at least zepto.js, data.js, event.js, selector.js and ajax.js (if loading files).
    • As yet untested with pager, parsers & widgets.
    • No metadata support is available when using Zepto. I am not going to bother with continuing to support or converting the metadata plugin.

About

Github fork of Christian Bach's tablesorter plugin + awesomeness ~

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.3%
  • CSS 8.7%