Making your tables sortable
In this tutorial, Helge Tesdal from Plone Solutions will show you how to make your tables sortable with Javascript - just by using a simple declaration.
Making tables sortable using Javascript
Plone includes a handy javascript to make tables sortable in the browser. The javascript is included in the standard plone headers, so you don't have to touch javascript at all. To make your tables sortable, all you have to do is follow these easy steps.
| Table header |
|---|
| Table cell |
Can I have more than one sortable table on a page?
Sure you can. That is why the id of each table has to be uniqe. All tables of class 'listing' with unique ids will be sortable.
Make tables sortable in Plone 2.1Plone has a "Safe HTML" transform that filters the thead element in tables, making it impossible to create sortable tables when editing your content. Fortunately this is easy to fix.
|
|---|



