Fixed Order issues in step3/step4

Some cid-name array appeared backward. The last record in the bridge
must contain the last day of the array