add MSort method