`qr.update_attributes(position: params['qr'].index(qr.id.to_s) + 1)` will automatically save.

Also, this is quite a bit of work to do on one line, maybe we could extract a function that is responsible for figuring out which position the form sent in? That way we:

1. Hide knowledge about the jquery sortable plugin and how that works from the `sort` method.
2. Reveal a little bit more about what's going on here.