Can you shove before Attacking with Shield Master using a Readied action?

Can you perform a ready action with the condition being that you complete your bonus action, then you do your bonus action and then complete your action from your ready action?

For instance, I have feat Shield Master, I ready the attack action with the condition that the enemy is prone, then I take the shove bonus action and knock him prone then I take my readied attack action.

Isn’t this legal exploit to reverse the action order?