When loop breaks without returning , it means the prefix of both words were same till the execution of the loop . Now , the word with the smaller size will occur before in sorted order
return ( a . size ( ) < b . size ( ) ) ; }