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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user