<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/gridstack.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gridstack-h5.js"></script>
<h1>gridstack.js initial ordering issue</h1>
<div id="lists-container">
<section id="list-in-order">
<h2>
HTML ordered same as gs-y
</h2>
<div class="grid-stack">
<div class="grid-stack-item" gs-x="0" gs-y="0" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">0</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="1" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">1</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="2" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">2</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="3" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">3</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="4" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">4</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="5" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">5</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="6" gs-w="12" gs-h="1">
<div class="grid-stack-item-content">
This should be at position <span class="order-number">6</span>
</div>
</div>
<div class="grid-stack-item" gs-x="0" gs-y="7" gs-w="12" gs-h="1">
...