i didnt understand the case when the lengths of the 2 strings are equal then what is meant by return a<b
also by writing a.length()>b.length()… how are we ensuring that the greater length string gets the higher priority as we dont know which string will be allocated to the a parameter and which to the b parameter in the compare function.
also how can we return anything other than true or false from a bool function