Skip to content

Instantly share code, notes, and snippets.

let $this = this;
const fieldsEl = document.getElementById('fields');
Sortable.create(fieldsEl, {
onChange: function (evt) {
let list = this.toArray();
list.forEach(function (uuid, index) {