Enforced rotation now uses thread-save gmx_qsort