Same format as tube sockets. Looking at the pins on the bottom of the tube is the same as looking at the lugs under the tube socket. Pin 1 is the first one clockwise from the key slot, or the gap. Numbering rises clockwise around the circle. Integrated circuits are the same deal, but we tend to look at them from above, and count pin numbers counterclockwise. You look at a tube's pins from below. You see a chip's pins from above. Still the same system, just a different viewpoint looking at a chip from above, and at a tube's socket from below.
Just one problem. The top picture shows the pin numbers molded into the insulator body. If we flip it over to plug into the socket in the second pic, we see that you numbered the pins' positions in reverse.
The top and bottom pics just don't match. And I'm pretty sure the top one is right.
73