This would add a jQuery UI sortable to the items in a has_many, with the :sortable parameter accepting the field the sortable should update. That field would need to be included in the fields for the associated model - for example:
f.has_many :images, :sortable => :sort do |i|
i.input :sort, :as => :hidden
The feature will only update the value of the hidden field, which would only be persisted to the database upon submitting the form.
Moved to #881