taking tiny step of sorting rows