Although using 'paste sprite' means you won't be able to use some of the sprite commands, like set sprite alpha for example. Another way is to turn your text into a sprite itself - and then you can use set sprite priority to control exactly which sprites get drawn on top of each other sprite. To turn your text into a sprite, you can use this function:
function text_over_sprite(spritenumber,x#,y#,text$)
create bitmap 100,screen width(),screen height()
text 0,0,text$
get image 100,0,0,text width(text$),text height(text$),1
delete bitmap 100
sprite spritenumber,x#,y#,100
set sprite priority spritenumber,spritenumber
endfunction
Then, any time you want to write some text, just write:
text_over_sprite(spritenumber,x,y,text)