move sort to selection_sort
selection_sort is finished