As a rule of thumb you want the player that give you more trouble to act before you do most of the time.
It is less a matter of what their stack size is and more a matter of how aggressive or passive they are, you want passive players acting after you and agressive players acting before you