comparison: fix filter_by_comparison == for ranges