Why return a>b prints reverse order of fruits name . EXPLAIN IN DETAIL
Strings STL doubt
hey @Nikhil-Aggarwal-2320066674901389, it is the way of sorting the array of string. Sort function just takes pair from the array and check them. Like apple <banana will be true so they gets sorted in order like apple and banana.
It is totally the internal implementation of sort function