Git Product home page Git Product logo

sorttable.js's Introduction

sorttable.js

enhanced fork of http://kryogenix.org/code/browser/sorttable/

sorttable allows HTML tables to be sorted by Javascript when clicked on a column header. It supports multiple data formats and even custom sort data

documentation

For some usage examples and functionality tests, see my example page. (refer to original site for original documentation and examples)

changes compared to original sorttable v2

  • now conforms to HTML5 specs (no more errors just because you use sorttable! Now validates to w3c)
    This is an incompatible change if "sorttable_customkey" was used
  • fixed support of dynamic tables. Can now adapt to changes on a table
  • improved IE compatibility
  • most major initialization is delayed until user wants to sort a table. sorttable.js has now less impact on page load
  • fixed detection of dates in format dd.mm.yyyy as numeric
  • enhanced numeric sort with newly added decimal comma support (though it slowed down the detection progress)
  • supports multiple "tbody" tags and allows to place additional headers in-between
  • sorttable's up/down arrow used to have the ID #sorttable_sortfwdind and #sorttable_sortrevind. It no longer uses an element ID but a class instead, .sorttable_sortfwdind and .sorttable_sortrevind respectively.
  • sorttable's up/down arrow were upside down, so it used to be big-to-small if we sorted ascending which is wrong
  • removed Sorttable v1 compatibility with use of "sortbottom" class
  • fixed Javascript errors and warnings

License

  • MIT Licence, like the original

sorttable.js's People

Contributors

white-tiger avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.