I have a flex container like below :
<div class="parent">
<div class="child">1</div>
<div class="child">2</div>
<div class="child">3</div>
<div class="child">4</div>
.
.
.
<div class="child">n</div>
</div>
the child number varies everytime. I need second child to always be at last in mobile device.
I am aware order: -1 can be used to place it at first place everytime. But I'm interested in knowing if there's anything I can do to order it at last position everytime.