chrome compatible localeCompare