From 839d722abf07d49b57cd13f7bceda5dcdb6ee6ea Mon Sep 17 00:00:00 2001 From: Tom Conkling Date: Tue, 8 Apr 2008 20:24:56 +0000 Subject: [PATCH] whoops - this was performing an unstable sort, backwards git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4992 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ArrayUtil.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as/com/threerings/util/ArrayUtil.as b/src/as/com/threerings/util/ArrayUtil.as index c3b658b50..8499431d4 100644 --- a/src/as/com/threerings/util/ArrayUtil.as +++ b/src/as/com/threerings/util/ArrayUtil.as @@ -68,7 +68,7 @@ public class ArrayUtil var jj :int = ii - 1; for (; jj >= 0; jj--) { var compVal :* = arr[jj]; - if (comp(val, compVal) < 0) { + if (comp(val, compVal) >= 0) { break; } arr[jj + 1] = compVal;