<div class="d-flex flex-wrap-reverse"> ... </div>
<div class="d-flex flex-sm-wrap-reverse"> ... </div>
<div class="d-flex flex-md-wrap-reverse"> ... </div>
<div class="d-flex flex-lg-wrap-reverse"> ... </div>
<div class="d-flex flex-xl-wrap-reverse"> ... </div>
You don't need to remember all CSS classes. Just use the Bootstrap Editor instead.