Add Document reordering functionality