added sort to looop just do thing dot each dot sort