reorder lines