References within figures come out of order...

Hi,

I want to insert some references within a Figure. However, when I insert them they do not go into the order of my text, but start from reference number 1…

so instead of coming up as  reference no. 40 as it should be, it puts me as reference no.1…

Can anyone please help?

Many thanks.