Its your ego the one that keeps confronting this situation, its like when you compete in a race and you finish second....you dont appreciate the fact that you competed or even finished, instead you focus in the 20 seconds that separate you from victory, well think about all the good that made the simply fact that you participate and keep training.
You didn't loose my friend, she just went a different path and it hurts a lot but that doesnt made you less worth of a person, believe that in this life love will choose you without looking for it. Somebody will loooove every minute they spend with you and share your values, there are many people with different values than you and at certain point they will arise. Would you change them because of that? No, you will love yourself and work on you and one day a person with the same values will share a precious time with you, as simple as that.
Now stand up, pick yourself up, cry as a m..fcker be sad, be depressed, use external help, annoy your family and friends with nonsense questions, let it all out overhere and do that one day at the time, we are here for you, in time all that suffering will be gone and at that point your movie will have a different argument
When the student its ready, the teacher will appear... Even after all this time the sun never says to the Earth, "You owe me." Look what happens with a love like that,It lights the whole sky.