Selection sort Wikipedia In computer science selection sort is a sorting algorithm specifically an inplace comparison sort It has O n 2 time complexity making it inefficient on large lists and generally performs worse than the similar insertion sort Selection sort is noted for its simplicity and it has performance advantages over more complied algorithms in certain situations