order rows to print