No matter what we do to the qsort implementation, the manual should avoid any confusion about qsorting NaNs. Proposed patch attached.