statistics io output does not include sort costs for merge joins. If you enable allow resource limits, the sort cost is not reported in the “Total estimated I/O cost” and “Total actual I/O cost” statistics.