I'm planning to make an addon which records the setup of a raid before entering a battleground and then resets the order once inside that battleground. However, I cannot find a command in the WoW API which swaps members of a party. Are there any?
SetRaidSubgroup(index, subgroup) - Move a raid member from his current subgroup into a different (non-full) subgroup.
SwapRaidSubgroup(index1, index2) - Swaps raid members into different groups