I think is better delete strCmp function and use string.localCompare(that) instead. What do you think about it?