RE:An observation to clarifyZimmee, not necessarily the same guy.
Brokerages have the option to fill in house orders first.
So if TD had a client with shares for sale, and another TD client puts in an order to purchase for the same price, TD will match up their orders first. This is why sometimes you can be at the front of the line and still not get your order filled next.
TW