This maybe because you placed a limit order. These are executed on a first-come first-served basis. This means if two limit orders at the same price are placed at 10AM and 11AM respectively, the one placed at 10AM will be executed first. If someone has placed a limit order before you at the same price, that will get executed first.