How to merge cut IDs by job order