ADD SortF and its corresonding testcases