trying sort algorithm