reorder paths