Drag/Sort for tagify

@patrick I presume it would be you looking at this if it gets the go ahead.

I thought I would have a little go and it seems pretty straight forward to add (I appreciate I haven’t added anything to turn on/off in the UI so will be active on all tagify for this project)

All I needed to do was get the CSS and JS from the yairEO Github project (https://github.com/yairEO/dragsort) and add include them on my page.

I then added:

        this.dragsort = new DragSort(this.tagify.DOM.scope, {
            selector: '.' + this.tagify.settings.classNames.tag,
            callbacks: {
                dragEnd: function () { e.tagify.updateValueByDOMTags() }
            }
        })

to the end of the render function in the dmxTagify script.

I’m sure you may find a more elegant solution but it works for what I want and thought it might save you a bit of time…