Well, maybe I don't understand, but what return value do you expect? This way, you know which one comes first or if they are equal. What result do you expect to get exactly?
i want it so that way its more complicated when using for my authentication
if it only compares letter one then any same character amount name starting with R will return the same value.. i want it so that it will return a value that can only be achieved by having the same name as str2 or changing str1 which will look like gibberish in my hex
Nooo, try it for:
str1 = "snaxpax"
str2 = "snaxpak"
And you'll get the result saying, that snaxpak is earlier,so some negative value as an answer. It compares first letter, if they are equal, it compares next and so on and so on.