It’s because of the extra class row
wrapped.
After the container
class
<div class="container">
Remove this code of class row
<div class="row">
and also remove the extra closing div if added for it.
The sidebar will be positioned to the right side.