refine cur_open_sort