I agree. My post has been edited to reflect that. I also remembered that I have seen repair bases repair things in the same turn they were built, so I moved repair down the list.
I can confirm that repair happens near the end because if a spaceyard/repair ship ends its turn in a sector with damaged ships, it will assist in repairs.