The test cases for the substring match problem in the C++ module need to sort the expected vector and the result vector not the str vector.