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 thisNormal :String = getNormal();
|
||||||
var thatNormal :String = (other as Name).getNormal();
|
var thatNormal :String = (other as Name).getNormal();
|
||||||
if (thisNormal == thatNormal) {
|
return thisNormal.localeCompare(thatNormal);
|
||||||
return 0;
|
|
||||||
|
|
||||||
} if (thisNormal < thatNormal) {
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// from interface Streamable
|
// from interface Streamable
|
||||||
|
|||||||
Reference in New Issue
Block a user