Fixed comparator contract for MethodInstance#SORT_BY_INDEX. In edge cases
sorting in Java7 would fails.