Add spec for sorting in both directions with overlapping data.