sortable floats in Rails

I understand how the sortable lists work in Rails (using the LI
elements). I cannot seem to apply this though to floats - does the
acts_as_sortable plugin helper only work with line item elements?

I would like to be able to have something like the demo link above -
where I can rearrange/sort floats. Are there any tutorials on how to
do this in Rails?