fixed ORDER_BITS when checking for swaps