Is there way I can overlay dynamic map service layer on top of the feature layer?

I need to bring dynamic map service layer on top of the feature layer using javascript api. I tried using reorderLayer method but couldn't be able to resolve. Any guide and sample work is highly appreciated. Thanks