reodered rows in reg table