Use localeCompare.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4299 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-08-07 17:27:01 +00:00
parent f665a5b2ea
commit e2a292e0fb
+1 -9
View File
@@ -58,15 +58,7 @@ public class Name extends Object
{
var thisNormal :String = getNormal();
var thatNormal :String = (other as Name).getNormal();
if (thisNormal == thatNormal) {
return 0;
} if (thisNormal < thatNormal) {
return -1;
} else {
return 1;
}
return thisNormal.localeCompare(thatNormal);
}
// from interface Streamable