Use localeCompare.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4299 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user