Let's say you have a page with four main blocks in it (they would each contain varying amounts of content):
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
At narrow browser widths they should appear in the same order they are in the HTML:
But at wider widths they should rearrange into this layout, with a sidebar, with the blocks in a different order:
Using Bootstrap 4's grid layout is there a way to do this? I can see how to reorder blocks, but that only seems to be good for blocks within the same row.
UPDATE: The second layout could be done like this, but I can't see a way to make that look like the first layout:
<div class="container">
<div class="row">
<div class="col-sm-9">2</div>
<div class="col-sm-3">
<div>3</div>
<div>1</div>
<div>4</div>
</div>
</div>
</div>