updated ordering for table rows