Assuming an ASCII-based character set, zcrself's code will return true for cmp1("b", "ab"). Your expression will evaluate to false instead. Furthermore, your expression will also evaluate to false...
Type: Posts; User: laserlight
Assuming an ASCII-based character set, zcrself's code will return true for cmp1("b", "ab"). Your expression will evaluate to false instead. Furthermore, your expression will also evaluate to false...
Have you tried my suggestion?
You should write a custom comparator that takes the length of the strings being compared into consideration.