Revert parts of 6769a30f4, it disabled the hand-specialized sort methods in the non-aot case instead of the aot case.