refine sort