introducing sorting alg interface and MO3 QS