Look at the two bit positions separately. One operation sorts each adjacent pair of bits simultaneously.
An array is stable exactly when both binary sequences are nondecreasing. Their numbers of ones never change, so the final array is determined by these two totals.
The difficulty is the number of operations: one operation can help both bits. What changes when the two entries are and ?