refine bbox_sort clip relations