finished sorts and tests