re organize rows