Added sort mf to runtime