Here, we just sort the list of numbers. Why? By the Triangle Inequality Theorem, we know that the sum of any two side lengths must be strictly greater than the length of the third. Obviously then, if we have $3$ lengths, we only really care to test that the sum of the two smallest sides are greater than the third.