When I was younger, my best friend and I worked together.  She ended up getting the promotion that we both wanted.
I am sorry that must have been tough.  She probably felt bad for you.
I'd been working there longer so it really stung.  Our friendship survived though!
That is great because friendships are very important