This question already has an answer here:
I was wondering: when casting multiple spells per turn, does the leveled spell need to be cast first?
The PHB reads:
A spell cast with a bonus action is especially swift. You must use a bonus action on your turn to cast the spell, provided that you haven’t already taken a bonus action this turn. You can’t cast another spell during the same turn, except for a cantrip with a casting time of 1 action.
The way it sounds is that, if you cast a spell with a casting time of 1 Bonus Action, you can't cast another spell this turn, unless it is a cantrip with a casting time of 1 Action.
But why couldn't I simply cast my cantrip first, and then a spell with casting time of 1 Bonus Action?