When looking at the flat side with the leads pointed downward, the three wires emerging from the bottom are connected to, from left to right, the emitter, the base and the collector.
On the flat surface, looking at it from below, the three wires coming out of the bottom are linked to, from left to right, the emitter, the base and the collector.