From e2a292e0fb4e8bf7f552f59ee858bc41e13fad9a Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 7 Aug 2006 17:27:01 +0000 Subject: [PATCH] Use localeCompare. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4299 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Name.as | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/as/com/threerings/util/Name.as b/src/as/com/threerings/util/Name.as index be2e70887..42aaf2f05 100644 --- a/src/as/com/threerings/util/Name.as +++ b/src/as/com/threerings/util/Name.as @@ -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