more efficient reorder

fixes Matt-Esch/virtual-dom#90