I have been learning about CMOS Tri State inverters, and I was wondering which one of these two ways is a better implementation of this circuit.
The first is what we see in all textbooks :
Or the second -
I have been learning about CMOS Tri State inverters, and I was wondering which one of these two ways is a better implementation of this circuit.
The first is what we see in all textbooks :
Or the second -
I don't think it matters, the order of the transistors is arbitrary since they're wired in series. You can find examples of both.
This series of lecture notes shows an example that is the same as (1): http://www-inst.eecs.berkeley.edu/~cs150/sp10/Lecture/lec08-cmos.pdf
That said, they prefer a transmission-gate approach which looks like this:

simulate this circuit – Schematic created using CircuitLab
The second scheme is bad because when it is opaque, the changing input will introduce noise resulted from charge-sharing.
The answer above that charge-sharing is the reason to prefer the first version is absolutely correct.
The tri-state inverter is useful as a CMOS latch. You put two together and you have a basic design for a DFF (D-type flip-flop). In such a design, the loading on the master output is very small, and the charge sharing event that occurs when the input switches (in design #2) may cause a bump that affects timing and may even give signal integrity problems (especially if you are doing a design without a keeper, which you might do for some reason---but it doesn't really help that much to add a keeper to the output either).
Dynamic domino circuits more generally (the circuit family of which this is NEARLY the simplest example) have big problems with charge sharing. This is why they are not used very much these days. They used to be used heavily in high-performance designs.
One moral of this story: if you are stringing together MOSFETs into something that's not a static CMOS gate where the pull-up and pull-down are duals, there are actually a lot subtle analog effects that can intrude and make a mess of things.
BTW I used to have this exact question in one of my early homework assignments when I taught this stuff. Then ask, why do you prefer #2? Well you prefer #2 because it's an easier layout, fewer crossovers, so you can just run the clocks in polysilicon. Of course no one does that anymore.