String sort problem1


problem?

hello @Aryanomar00
you are not checking correctly whether one string is a prefix of another string or not.

for example
abcc abcdef
here in this case one string is not prefix of another but ur code will consider them as prefix.

so modify that part of ur code.

ok so please correct it, i am not able to do.

pls refer this code snippet->
image
ur compare function should look like this

shows error please help

@Aryanomar00
image
add i++;
in the last line