Pipe reordering