src/dual-listbox.js
/**
     * Sorts the `selected` array that forms the basis of the visual
     * rendering of the DualListBox.
     *
     * Note: After this method was called you will probably want to call
     *       {@link redraw} in order to ensure that the DOM output matches
     *       the new order.
     *
     * @private
     * @param {int} oldIndex
     * @param {int} newIndex
     * @return {void}
     */
Sorts the `selected` array that forms the basis of the visual
rendering of the DualListBox.

After this method was called you will probably want to call
redraw in order to ensure that the DOM output matches
the new order.

@private
@param {int} oldIndex
@param {int} newIndex
@return {void}
Sorts the ` selected ` array that forms the basis of the visual rendering of the DualListBox . After this method was called you will probably want to call redraw in order to ensure that the DOM output matches the new order . @private @param { int } oldIndex @param { int } newIndex @return { void }
_sortSelected(oldIndex, newIndex) {
        const selected = this.selected[oldIndex];
        this.selected.splice(oldIndex, 1);
        this.selected.splice(newIndex, 0, selected);
    }
_sortSelected ( oldIndex , newIndex ) { const selected = this . selected [ oldIndex ] ; this . selected . splice ( oldIndex , 1 ) ; this . selected . splice ( newIndex , 0 , selected ) ; }
Sorts the `selected` array that forms the basis of the visual
 rendering of the DualListBox.
Sorts the ` selected ` array that forms the basis of the visual rendering of the DualListBox .