This method of the IIntRangeComparator Interface compares equal ranges. This method is called by IntRanges.sort.
int orderRanges(IntRanges ranges, int i1, int i2);
Returns an integer indicating how to interpret two equal ranges. This can be one of the values shown in the following table.
ORDER_BEFORE | i1 should be placed before i2. |
ORDER_EQUAL | i1 and i2 are equal. |
ORDER_AFTER | i1 should be placed after i2. |
ranges | The set of integer ranges to order. |
i1 | The index of first range. |
i2 | The index of second range. |