Reorder row categories to match chessboard order