properly reordering rows KF-79