Change order of elements in a pivot item