3. algorithm - Sort the data - Selection sort algorithm