Order of operations for buffs

Does anyone know the order in which buffs from Skills, Armour, Glyphs and Pets are applied to character stats?

Logically:

From my understanding:
LEVEL 1

  • core character stats (based on level & character class) (fixed stats)
    LEVEL 2
  • Glyph ( fixed stats)
  • Armor (fixed stats + Set Effect)
  • passive skills (fixed stats or %boost)
    LEVEL 3
  • last is pets (I believe this boost is strictly applied only on battle field and this is invisible from the heroes screen since different pet setup can be done for Arena, adventure & dark rush events )