remove unneeded sort.