Selection sort is of O(n²) complexity