Flipbox-Sortable

This page has the latest Flipbox (version 20100211 or newer) and the following line in local/config.php:

 $FlipboxHTML = '<tt id="_fbi%1$s" %3$s>[%4$s]</tt>';
|| class=sortable border=1 width=300
||! N ||! Name ||! Check ||
|| 1  || Petko ||  [__]  ||
|| 5  || Pm    ||  [xx]  ||
|| 4  || Hans  ||  [__]  ||
|| 2  || Matt  ||  [qq]  ||
NNameCheck
1Petko[__]
5Pm[xx]
4Hans[__]
2Matt[qq]

Note that the sort-table algorithm does not look at the cell content when you reverse-reorder the same column you previously reordered, so, after changing some flipboxes, you need to first sort the table on another column, then on the "check" column.

Note that this page does not use the Cookbook:SortableTables recipe, but a simpler implementation, with the file sorttable.js placed in the farm's /pub/ directory and with this line added to config.php:

  $HTMLHeaderFmt['sorttable'] = '<script type="text/javascript" src="$FarmPubDirUrl/sorttable.js"></script>';

The Cookbook recipe allows more settings, but uses approximately the same algorithm to sort the tables, so it should work the same way. --Petko 2010-02-11 14:38:41

0: 00.00 MarkupToHTML begin
1: 00.00 MarkupToHTML begin
2: 00.01 MarkupToHTML end
3: 00.02 MarkupToHTML end
4: 00.03 MarkupToHTML begin
5: 00.06 MarkupToHTML end
6: 00.07 MarkupToHTML begin
7: 00.07 MarkupToHTML end
8: 00.07 now