fix max_2_sum sorting bug