I wish to compare two strings in javascript. I am using localeCompare method but the output is not as expected
116457 < 3085 false \"116457\" < \"3085\"
If 116457 were a word, it would come before 3085 in a dictionary.
Consider a dictionary with