wrasslin with closures to try to save the state of _qbs after each sort