Backgammon bearing off rules
Either choice is legal. Here's a reference:

Q: Can I play low number first when bearing off?
Yes, you may play your numbers in either order, as long as each number is played legally.