Perhaps localeCompare isn't available in Safari? If you feel like experimenting, try this JavaScript code:
Code:
alert(String.prototype.localeCompare)
If this outputs "undefined", then that means Safari doesn't support this method. In that case, you can create it yourself:
Code:
String.prototype.localeCompare = function (sOther) {
if (this < sOther) return -1;
else if (this > sOther) return 1;
else return 0;
}
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/