Bug #108 fix: Wrong behavior with latin characters

Use of localeCompare and toLocaleLowerCase functions based on browser
definition.