Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lfittl/sortable-table

50 lines of Javascript code to help you sort tables - requires Prototype library
https://github.com/lfittl/sortable-table

Last synced: 21 days ago
JSON representation

50 lines of Javascript code to help you sort tables - requires Prototype library

Awesome Lists containing this project

README

        

50 lines of Javascript code to help you sort tables (requires Prototype library)

Example table:






Entry ABC
3 comments

...

The first click will sort ascending.
The second click will sort descending.
The third click will return to the initial order on page load.

For Rails apps:
- Copy sortable_table.js into public/javascripts and include it
- Copy sortable_table.css into public/stylesheets and include it
- Copy arrow_down.gif and arrow_up.gif into public/images