[BISERVER-9599] Expose JS native hook for localeCompare