recovery: use rw mapping for qsort