has_many sortable unsaved records fix

When submitting invalid has_many sortable records the `children = children.reorder` line would have thrown all unsaved (including new invalid) records out of the collection. By sorting in ruby world instead of in the database the unsaved records can be retained.