if (command.newPosition < command.oldPosition) {
if (siblingPosition >= command.newPosition && siblingPosition < command.oldPosition) {
sibling.setOrdinalPosition(siblingPosition + 1);
}
} else {
<BUG>if (siblingPosition < command.newPosition && siblingPosition > command.oldPosition) {
</BUG>
sibling.setOrdinalPosition(siblingPosition - 1);
}
}

if (command.newPosition < command.oldPosition) {
if (siblingPosition >= command.newPosition && siblingPosition < command.oldPosition) {
sibling.setOrdinalPosition(siblingPosition + 1);
