Set positions on elements manually while ordering

We do not use acts_as_list methods anymore which saves database quaries. This change also ensures the correct position of the elements.
Merge pull request #657 from magiclabs/fix/ensure_correct_element_positions

Set positions on elements manually while ordering