Which side should I place a TO-220 transistor on a heat sink?
The second one is often screwed flat on a PCB, with the transistor's legs at 90 degree angles, and then of course you put the transistor on the narrow side.

But otherwise it doesn't matter. The heatsink will receive its heat at the same place and the fins don't really care whether the heat entered from the left or the right.