I think is some sort of recursion here. I've called SortedMap.higherKey on sorted map with this comparator:
package com.berry.iso {
import org.as3commons.collections.framework.IComparator;
public class ISOPointComparator implements IComparator {
// Note: Unlike sort functions in Array and Vector this one should strictly return -1, 0 or 1.
public function compare (item1:*, item2:*):int {
var point1:IISOPoint = item1 as IISOPoint;
var point2:IISOPoint = item2 as IISOPoint;
var re:int = point1.cy - point2.cy || point2.cx - point1.cx;
if (re != 0) {
re = (re > 0) ? 1 : -1;
}
return re;
}
}
}
I think is some sort of recursion here. I've called SortedMap.higherKey on sorted map with this comparator: