int compare(Object o1, Object o2) { Coordinate p1 = o1 as Coordinate; Coordinate p2 = o2 as Coordinate; return polarCompare(origin, p1, p2); }