/redmine_sortable_table

Make sortable tables in redmine wiki

Primary LanguageJavaScript

Sortable Tables
===============

Plugin for easy create sortable tables in redmine wiki.

By ideas of http://www.redmine.org/issues/1718

Forked from https://github.com/ankalagon-ru/redmine_sortable_table

Based on "unobtrusive table sort script revisited", big thanks to Brian McAllister 
 * http://www.frequency-decoder.com/2006/09/16/unobtrusive-table-sort-script-revisited



Usage:
======

{{sortable_table}}


|_(sortable). Column 1|_(sortable-numeric). Column 2|_. Unsortable|_(sortable-sortIPAddress). IP|
|bbbb|12|something|127.0.0.1|
|aaaa|24|anything|192.168.1.77|
|cccc|9|nothing|192.168.1.54|

More info about sorting:
  http://www.frequency-decoder.com/2006/09/16/unobtrusive-table-sort-script-revisited



Installation:
=============

Redmine 1.x:
copy plugin into vendor/plugins directory with name `sortable_table'

Redmine 2.x:
copy plugin into plugins directory with name `sortable_table'

restart redmine



How it works:
============

macros `sortable_table' include required javascript and css files.

included javascript automatically make sortable all tables with columns headers class `sortable*'