sort and find min different O(n)