Prayer always works. It doesn't mean you are going to get what you want. Prayer isn't to get what you want...it's to draw you closer to your Creator and to align yourself with what He wants, not with what you want!
I started off having four boys. Was it what I would have prayed for? No. But I love those boys sooo much. I often think that maybe I wouldn't have as many kids as I do if I had gotten both genders right away. At the time, I suffered with GD. But now, I am so happy that God gave me those boys. He knew exactly what I needed, even though I didn't...though I thought I did at the time! Then I had my first little girl. I would have been good to stop at 5 children, but I loved having a big family....again, I family I may not have had if I had been given what I thought I wanted. We had another baby, our 5th boy. There was slight disappointment. Had I been given another girl, then our family would be complete....and that little boy is the sweetest, gentlest little guy. I just gave birth almost 8 weeks ago to our second pink bundle! Now, our family is complete, and I am so thrilled to have a large family....again, something I never knew I wanted!
So prayer always works....it may not be what you think you want or need, but God knows!
I never swayed. I thought about it and read about it, but in the end, I figured I would get what God wanted me to have regardless....looking back, I had one GREAT girl attempt (timing wise), and he is ALL boy...and my girls were definitely conceived in boy timing.
I hope you can find contentment in what you are given!