finish sorting