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.