It's threading and the info is there: that's what Message-ID, References, In-Reply-To are for...
But not only top posting won but software made it worse by not displaying threading properly (I'm looking at you corporate outlook, that said gmail and others are the same).