I got 0, too. (screencap)

My process was to sort the most obvious to the left and right, not worrying much about order. Then I sorted each third separately. Toward the end of each row sort, it was fairly easy for me to see when two swatches were swapped.