Add reordering functionality