[TASK] Support before/after sorting when pasting