guess we have a div grid for inventory 128x512px. i want all (item 64x64px) divs outside snapable to the grid by dragging tehm. inside the inventory the divs must be sortable. i want no lists. any suggestions by doing it the easiest way with jquery or js.
combine ui dragable and sortable
<style> #snaptarget {
height: 128px; width:512;
display: grid;
grid-gap: 64px 64px; background:green;
}
.item { border:thin solid black; display: inline-block;width: 64px;height:64px; background:yellow; display:inline-block;float:right; }</style>
<div id=snaptarget></div>
<div class="item sortable"><img></div>