I m not able to understanding the bool compare function which u have make please explain me how it is working with example

Since string can be compared directly in the book compare string function. If you want to sort the strings in ascending order just use string1< string2 to compare two strings.

@kailash_01 If you think I have resolved your problem you can mark the doubt as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.