5th edition doesn't give much information about Giants and their Ordning. As far as I know, here are the two relevant text blocks in the Monster Manual :
At the highest level of the ordning, the races of the giants are also ranked according to status. Storm giants are the highest in the ordning, followed by cloud giants, fire giants, frost giants, stone giants, hill giants, and finally giant kin such as fomorians, ettins, and ogres. (MM, p. 149 - Giants)
In the giants'complex social structure (known as the ordning), ogres
rank beneath the lowest giants in status. (MM, p. 238 - Ogres)
These two blocks seem to answer your question. The order in the ordning, from the highest to the lowest rank, is :
- All the true giants
- The giant-kin (including formorians and ettins)
- The ogres
Trolls aren't mentioned at all.
It is worth noting that in D&D 2nd edition, ettins were considered true giants, sitting just before the giant-kin in the Ordning (sources here and here) and that giant-kin included the following creatures (source) : firbolgs, formorians, verbeegs, voadkyn, cyclopes, cyclopskins, and ogres.