Ran wrap-and-sort