I think it is random.. I have had equal speed pets and had the NPC go first twice in a row, then the 3rd round I went. Neither of us were using the "this ability goes first" abilities (IE surge, etc)..
But.. then again.. the RNG does hate me, so dont take this for gospel truth
