DOM based on
        // where the gesture ended. Update the items variable to the
        // new order of items
        items = detail.complete(items);

        // Reorder the items in the DOM
        reorderItems(items);

        // After complete is called the items will be in the new order
        console.log('After complete', items);
      });

      function reorderItems(items) {
        reorderGroup.replaceChildren();

        let reordered = '';

        for (let i = 0; i < items.length; i++) {
     