The upcoming 1.5 release of RIFE (
http://rifers.org) includes several excellent features, including stateful embedded elements.
In this brief tutorial I give an example of implementing a simple sortable HTML table using a stateful embedded element.
Once this is implemented, dropping in some sortable HTML tables in a page, each keeping their previous sort order after each request, is as simple as feeding the data to the table and placing a tag at the location where you want to display the table.
The tutorial is available at
http://rifers.org/wiki/display/RIFE/TableElementExample
Frederic Daoud